From b06bb7009c8dd9766c4802ddd333a24706a40b89 Mon Sep 17 00:00:00 2001 From: Cilly Leang Date: Sun, 17 Aug 2025 23:25:30 +1000 Subject: [PATCH] user/neovim: add autoclose-nvim and update lualine config --- modules/user/neovim.nix | 2 ++ res/config.lua | 15 +++++++++++---- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/modules/user/neovim.nix b/modules/user/neovim.nix index 774feea..9e6877c 100644 --- a/modules/user/neovim.nix +++ b/modules/user/neovim.nix @@ -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 diff --git a/res/config.lua b/res/config.lua index 4237b16..3632c15 100644 --- a/res/config.lua +++ b/res/config.lua @@ -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')