feat(nvim): Completions and UIs

This commit is contained in:
js0ny 2024-11-29 01:56:02 +00:00
parent 2a76a6fbe4
commit 9076795c4f
13 changed files with 147 additions and 58 deletions

View file

@ -122,21 +122,22 @@ ins_left {
padding = { right = 1 },
}
ins_left {
-- filesize component
'filesize',
cond = conditions.buffer_not_empty,
}
-- ins_left {
-- -- filesize component
-- 'filesize',
-- cond = conditions.buffer_not_empty,
-- }
ins_left {
'filename',
cond = conditions.buffer_not_empty,
color = { fg = colors.magenta, gui = 'bold' },
}
-- ins_left {
-- 'filename',
-- cond = conditions.buffer_not_empty,
-- color = { fg = colors.magenta, gui = 'bold' },
-- }
ins_left { 'location' }
ins_left { 'progress', color = { fg = colors.fg, gui = 'bold' } }
-- ins_left { 'location' }
ins_right { 'progress', color = { fg = colors.fg, gui = 'bold' } }
ins_left {
'diagnostics',
@ -149,14 +150,21 @@ ins_left {
},
}
-- Insert mid section. You can make any number of sections in neovim :)
-- for lualine it's any number greater then 2
ins_left {
function()
return '%='
return vim.bo.filetype
end,
color = { fg = colors.blue, gui = 'bold' },
}
ins_left {
function()
return vim.bo.shiftwidth .. " space"
end,
}
ins_left {
-- Lsp server name .
function()
@ -174,10 +182,18 @@ ins_left {
end
return msg
end,
icon = 'LSP:',
icon = '',
color = { fg = '#ffffff', gui = 'bold' },
}
-- Insert mid section. You can make any number of sections in neovim :)
-- for lualine it's any number greater then 2
ins_left {
function()
return '%='
end,
}
-- Add components to right sections
ins_right {
'o:encoding', -- option component same as &encoding in viml
@ -199,6 +215,7 @@ ins_right {
color = { fg = colors.violet, gui = 'bold' },
}
ins_right {
'diff',
-- Is it me or the symbol for modified us really weird