Add nvim config

This commit is contained in:
Tobias Reisinger 2023-04-02 19:31:08 +02:00
parent 92366b38ac
commit df7bfd1282
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
14 changed files with 285 additions and 0 deletions
.config/nvim/after/plugin

View file

@ -0,0 +1,41 @@
local function window()
return vim.api.nvim_win_get_number(0)
end
require('lualine').setup({
options = {
icons_enabled = true,
theme = 'dracula',
},
sections = {
lualine_a = { 'mode' },
lualine_b = { 'branch', 'diff', 'diagnostics' },
lualine_c = { {
'filename',
path = 1,
} },
lualine_x = { 'encoding', '%<0x%B', 'fileformat' },
lualine_y = { 'filetype' },
lualine_z = { 'location', window }
},
inactive_sections = {
lualine_a = {},
lualine_b = {},
lualine_c = { 'filename' },
lualine_x = { 'location', window },
lualine_y = {},
lualine_z = {}
},
tabline = {
lualine_a = { {
'tabs',
max_length = vim.o.columns / 2,
mode = 2
} },
lualine_b = {},
lualine_c = {},
lualine_x = {},
lualine_y = { 'branch' },
lualine_z = {}
}
})