From f872b0e0541f5516c9e806d7475038e916a341b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jalil=20David=20Salam=C3=A9=20Messina?= Date: Sat, 2 Mar 2024 21:15:55 +0100 Subject: [PATCH] fix(nvim): Tidy up config --- nvim/plugins/default.nix | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/nvim/plugins/default.nix b/nvim/plugins/default.nix index 848fbed..98d97f7 100644 --- a/nvim/plugins/default.nix +++ b/nvim/plugins/default.nix @@ -1,17 +1,24 @@ { - colorizer.enable = true; - colorizer.userDefaultOptions.names = false; # disable named colors (i.e. red) + colorizer = { + enable = true; + # disable named colors (i.e. red) + userDefaultOptions.names = false; + }; gitsigns.enable = true; lspconfig = import ./lspconfig.nix; lspkind.enable = true; lualine = import ./lualine.nix; - luasnip.enable = true; - luasnip.extraConfig = { update_events = "TextChanged,TextChangedI"; }; + luasnip = { + enable = true; + extraConfig = { update_events = "TextChanged,TextChangedI"; }; + }; nvim-cmp = import ./cmp.nix; telescope.enable = true; - treesitter.enable = true; - treesitter.indent = true; - treesitter.incrementalSelection.enable = true; + treesitter = { + enable = true; + indent = true; + incrementalSelection.enable = true; + }; treesitter-context.enable = true; trouble.enable = true; lint = {