diff options
Diffstat (limited to 'neovim.nix')
| -rw-r--r-- | neovim.nix | 127 |
1 files changed, 70 insertions, 57 deletions
@@ -3,65 +3,67 @@ lib, pkgs, self', + inputs', ... }: let - plugins = with pkgs.vimPlugins; - [ - # general - catppuccin-nvim - - # TODO: don't pin when deprecation notice - # is no longer in nixpkgs - (fidget-nvim.overrideAttrs (_: { - src = pkgs.fetchFromGitHub { - owner = "j-hui"; - repo = "fidget.nvim"; - rev = "41f327b53c7977d47aee56f05e0bdbb4b994c5eb"; - hash = "sha256-v9qARsW8Gozit4Z3+igiemjI467QgRhwM+crqwO9r6U="; - }; - })) - - flash-nvim - gitsigns-nvim - indent-blankline-nvim - lualine-nvim - neo-tree-nvim - nvim-web-devicons - mini-nvim - - # completion - nvim-cmp - cmp-nvim-lsp - cmp-buffer - cmp_luasnip - cmp-async-path - luasnip - - # ui - dressing-nvim - noice-nvim - nui-nvim - nvim-notify - - # lsp - nvim-lspconfig - null-ls-nvim - - # utils - bufferline-nvim - plenary-nvim - telescope-nvim - trouble-nvim - which-key-nvim - - # treesitter - nvim-treesitter.withAllGrammars - nvim-ts-context-commentstring - - # main config - self'.packages.getchvim - ] - ++ lib.optional (pkgs ? vim-just) pkgs.vim-just; + plugins = with pkgs.vimPlugins; [ + # general + catppuccin-nvim + + # TODO: don't pin when deprecation notice + # is no longer in nixpkgs + (fidget-nvim.overrideAttrs (_: { + src = pkgs.fetchFromGitHub { + owner = "j-hui"; + repo = "fidget.nvim"; + rev = "41f327b53c7977d47aee56f05e0bdbb4b994c5eb"; + hash = "sha256-v9qARsW8Gozit4Z3+igiemjI467QgRhwM+crqwO9r6U="; + }; + })) + + flash-nvim + gitsigns-nvim + indent-blankline-nvim + lualine-nvim + neo-tree-nvim + nvim-web-devicons + mini-nvim + + # completion + nvim-cmp + cmp-nvim-lsp + cmp-buffer + cmp_luasnip + cmp-async-path + luasnip + + # ui + dressing-nvim + noice-nvim + nui-nvim + nvim-notify + + # lsp + nvim-lspconfig + null-ls-nvim + + # utils + bufferline-nvim + plenary-nvim + telescope-nvim + trouble-nvim + which-key-nvim + + # treesitter + (nvim-treesitter.withPlugins ( + _: nvim-treesitter.allGrammars ++ [self'.packages.tree-sitter-just] + )) + nvim-ts-context-commentstring + inputs'.getchoo.packages.vim-just + + # main config + self'.packages.getchvim + ]; extraPrograms = with pkgs; [ # external tools @@ -118,6 +120,17 @@ src = lib.cleanSource ./.; }; + + tree-sitter-just = pkgs.tree-sitter.buildGrammar { + language = "just"; + version = "unstable-2023-03-18"; + src = pkgs.fetchFromGitHub { + owner = "IndianBoy42"; + repo = "tree-sitter-just"; + rev = "4e5f5f3ff37b12a1bbf664eb3966b3019e924594"; + hash = "sha256-Qs0Klt9uj6Vgs4vJrjKXYD8nNe8KYdWCnADvogm4/l0="; + }; + }; }; }; } |
