diff options
author | Jon Santmyer <jon@jonsantmyer.com> | 2025-01-22 08:24:06 -0500 |
---|---|---|
committer | Jon Santmyer <jon@jonsantmyer.com> | 2025-01-22 08:24:12 -0500 |
commit | a9030912b24fa23793d08f22b8ee82f99488bf2a (patch) | |
tree | 9fb5f000b08a11826f5e69c027401f5d0c2170cf /modules | |
parent | 5a54566b1a816724de27fb1632da2e32b941ab1a (diff) | |
download | nix-config-a9030912b24fa23793d08f22b8ee82f99488bf2a.tar.gz nix-config-a9030912b24fa23793d08f22b8ee82f99488bf2a.tar.bz2 nix-config-a9030912b24fa23793d08f22b8ee82f99488bf2a.zip |
Diffstat (limited to 'modules')
-rw-r--r-- | modules/desktop/apps/editors/neovim.nix | 50 |
1 files changed, 26 insertions, 24 deletions
diff --git a/modules/desktop/apps/editors/neovim.nix b/modules/desktop/apps/editors/neovim.nix index e17dac6..f0040e0 100644 --- a/modules/desktop/apps/editors/neovim.nix +++ b/modules/desktop/apps/editors/neovim.nix @@ -1,12 +1,10 @@ { config, - options, lib, pkgs, ... }: let nvimConf = config.modules.desktop.apps.editors.neovim; - configDir = config.nixosConfig.configDir; in { options.modules.desktop.apps.editors.neovim = { enable = lib.mkOption { @@ -24,10 +22,9 @@ in { }; home.packages = [ - pkgs.ccls - pkgs.nodePackages.bash-language-server + pkgs.clang-tools + pkgs.nil pkgs.texlab - pkgs.sumneko-lua-language-server ]; home.manager.programs.neovim = { @@ -40,32 +37,37 @@ in { luafile /etc/nixos/config/nvim/lua/settings.lua luafile /etc/nixos/config/nvim/lua/lsp.lua ''; + coc.enable = true; + coc.settings = { + "suggest.noselect" = true; + "suggest.enablePreview" = true; + "suggest.enablePreselect" = false; + "suggest.disableKind" = true; + "inlayHint.enable" = false; + + "nix.enableLanguageServer" = true; + "nix.serverPath" = "nil"; + }; plugins = with pkgs.vimPlugins; [ nvim-web-devicons gitsigns-nvim - nvim-tree-lua catppuccin-nvim - - nvim-lspconfig - nvim-cmp - cmp-cmdline - cmp-nvim-lsp - cmp-nvim-lsp-signature-help - cmp-buffer - cmp-path - cmp-treesitter - luasnip - - vim-nix - nvim-treesitter.withAllGrammars - neoformat + vim-commentary + vim-fugitive + + popup-nvim + plenary-nvim + telescope-nvim + + nvim-lspconfig + nvim-treesitter nvim-treesitter.withAllGrammars - bufferline-nvim - lualine-nvim - alpha-nvim - ]; + coc-clangd + coc-lua + coc-spell-checker + ]; }; }; } |