user/neovim: add autoclose-nvim and update lualine config

This commit is contained in:
Cilly Leang 2025-08-17 23:25:30 +10:00
parent d9df212560
commit b06bb7009c
Signed by: cilly
GPG key ID: 6500251E087653C9
2 changed files with 13 additions and 4 deletions

View file

@ -30,10 +30,12 @@ in {
];
plugins = with pkgs.vimPlugins; [
autoclose-nvim
flutter-tools-nvim
fzf-vim
fzf-lsp-nvim
lualine-nvim
nvim-web-devicons
plenary-nvim
tokyonight-nvim
vim-fugitive

View file

@ -65,13 +65,23 @@ vim.cmd("highlight SignifySignChangeDelete guifg="..colors.red)
vim.cmd("au FileType rust highlight DiagnosticUnderlineHint ctermfg=14 gui=italic guifg="..colors.overlay2)
-- Plugins
require('autoclose').setup {}
require('nvim-highlight-colors').setup {}
require('nvim-treesitter.configs').setup {
highlight = { enable = true },
indent = { enable = false }
}
require('lualine').setup {
options = {
theme = 'tokyonight'
theme = 'catppuccin'
},
sections = {
lualine_c = {
{
"filename",
path = 1,
}
}
}
}
@ -95,9 +105,6 @@ end
vim.cmd('au FileType javascript setlocal indentexpr=v:lua.javascript_indent()')
-- nvim-highlight-colors
require('nvim-highlight-colors').setup {}
-- LSP
local nvim_lsp = require('lspconfig')