1
0

fix: configure tabline

This commit is contained in:
Rokas Puzonas 2021-11-01 17:18:04 +02:00
parent 58df795050
commit 93450b8b7b
3 changed files with 25 additions and 1 deletions

View File

@ -1,8 +1,29 @@
local map = require 'utils.map' local map = require 'utils.map'
local silent = {silent = true}
-- Window movement -- Window movement
map('n', '<c-h>', '<c-w>h') map('n', '<c-h>', '<c-w>h')
map('n', '<c-j>', '<c-w>j') map('n', '<c-j>', '<c-w>j')
map('n', '<c-k>', '<c-w>k') map('n', '<c-k>', '<c-w>k')
map('n', '<c-l>', '<c-w>l') map('n', '<c-l>', '<c-w>l')
map('n', '<M-j>', ':resize -2<cr>', silent)
map('n', '<M-k>', ':resize +2<cr>', silent)
map('n', '<M-h>', ':vertical resize -2<cr>', silent)
map('n', '<M-l>', ':vertical resize +2<cr>', silent)
-- Go to tab by number
map('n', '<leader>1', '1gt')
map('n','<leader>2', '2gt')
map('n','<leader>3', '3gt')
map('n','<leader>4', '4gt')
map('n','<leader>5', '5gt')
map('n','<leader>6', '6gt')
map('n','<leader>7', '7gt')
map('n','<leader>8', '8gt')
map('n','<leader>9', '9gt')
map('n','<leader>0', ':tablast<cr>')

View File

@ -18,6 +18,9 @@ vim.g.lightline = {
component_function = { component_function = {
gitbranch = 'FugitiveHead', gitbranch = 'FugitiveHead',
filename = 'LightlineFilename' filename = 'LightlineFilename'
},
tabline = {
right = {}
} }
} }

View File

@ -138,7 +138,7 @@ local function usePlugins(use, use_rocks)
-- Start screen -- Start screen
use { 'glepnir/dashboard-nvim', config = [[require 'config.dashboard']] } use { 'glepnir/dashboard-nvim', config = [[require 'config.dashboard']] }
-- Status line -- Status line and tab line
use { 'itchyny/lightline.vim', config = [[require 'config.lightline']]} use { 'itchyny/lightline.vim', config = [[require 'config.lightline']]}
end end