From ce3e3dbef29f483a7f104928edb47fe4b887b36d Mon Sep 17 00:00:00 2001 From: sajenim Date: Thu, 6 Apr 2023 09:32:32 +0800 Subject: [PATCH] add nvim.nix --- home-manager/nvim.nix | 52 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 home-manager/nvim.nix diff --git a/home-manager/nvim.nix b/home-manager/nvim.nix new file mode 100644 index 0000000..679da7c --- /dev/null +++ b/home-manager/nvim.nix @@ -0,0 +1,52 @@ +{ inputs, outputs, lib, config, pkgs, ... }: + +{ + home.packages = with pkgs.unstable; [ + # Language servers + clang-tools # C, C++, Objective C/C++, OpenCL, CUDA, and RenderScript + lua-language-server # Lua + nil # Nix + ]; + + programs.neovim = { + enable = true; + package = pkgs.unstable.neovim-unwrapped; + plugins = with pkgs.unstable.vimPlugins; [ + # Install all grammar packages + # nvim-treesitter.withAllGrammars + + # Or specific grammar packages only + (nvim-treesitter.withPlugins (p: [ + p.c + p.lua + p.nix + ])) + + # Quality of Life Enhancements + comment-nvim # Smart and powerful commenting + + # User Interface + gruvbox-material # Theme + dashboard-nvim # Start screen + nvim-tree-lua # File explorer + lualine-nvim # Statusline + + # Git Integration + vim-fugitive # Call any arbitary git command + gitsigns-nvim # Git decorations + + # Autocompletion + nvim-lspconfig # Collection of configurations for built-in LSP client + nvim-cmp # Autocompletion plugin + cmp-nvim-lsp # LSP source for nvim-cmp + cmp_luasnip # Snippets source for nvim-cmp + luasnip # Snippets plugin + + # Misc + vim-shellcheck # Static analysis tool for shell scripts + + # Dependencies + nvim-web-devicons # Provides icons + ]; + }; +}