forked from nix-community/nixvim
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
plugins: do not import helpers.nix directly
- Loading branch information
1 parent
9f3bbca
commit 7dbf7f9
Showing
13 changed files
with
83 additions
and
119 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,66 +1,65 @@ | ||
{ | ||
lib, | ||
helpers, | ||
config, | ||
pkgs, | ||
... | ||
}: let | ||
helpers = import ../../helpers.nix {inherit lib;}; | ||
in | ||
with helpers.vim-plugin; | ||
with lib; { | ||
mkCmpSourcePlugin = { | ||
name, | ||
extraPlugins ? [], | ||
useDefaultPackage ? true, | ||
... | ||
}: | ||
mkVimPlugin config { | ||
inherit name; | ||
extraPlugins = extraPlugins ++ (lists.optional useDefaultPackage pkgs.vimPlugins.${name}); | ||
}; | ||
|
||
pluginAndSourceNames = { | ||
"buffer" = "cmp-buffer"; | ||
"calc" = "cmp-calc"; | ||
"dap" = "cmp-dap"; | ||
"cmdline" = "cmp-cmdline"; | ||
"cmp-clippy" = "cmp-clippy"; | ||
"cmp-cmdline-history" = "cmp-cmdline-history"; | ||
"cmp_pandoc" = "cmp-pandoc-nvim"; | ||
"cmp_tabby" = "cmp-tabby"; | ||
"cmp_tabnine" = "cmp-tabnine"; | ||
"codeium" = "codeium-nvim"; | ||
"conventionalcommits" = "cmp-conventionalcommits"; | ||
"copilot" = "copilot-cmp"; | ||
"crates" = "crates-nvim"; | ||
"dictionary" = "cmp-dictionary"; | ||
"digraphs" = "cmp-digraphs"; | ||
"emoji" = "cmp-emoji"; | ||
"fish" = "cmp-fish"; | ||
"fuzzy_buffer" = "cmp-fuzzy-buffer"; | ||
"fuzzy_path" = "cmp-fuzzy-path"; | ||
"git" = "cmp-git"; | ||
"greek" = "cmp-greek"; | ||
"latex_symbols" = "cmp-latex-symbols"; | ||
"look" = "cmp-look"; | ||
"luasnip" = "cmp_luasnip"; | ||
"nvim_lsp" = "cmp-nvim-lsp"; | ||
"nvim_lsp_document_symbol" = "cmp-nvim-lsp-document-symbol"; | ||
"nvim_lsp_signature_help" = "cmp-nvim-lsp-signature-help"; | ||
"nvim_lua" = "cmp-nvim-lua"; | ||
"npm" = "cmp-npm"; | ||
"omni" = "cmp-omni"; | ||
"pandoc_references" = "cmp-pandoc-references"; | ||
"path" = "cmp-path"; | ||
"rg" = "cmp-rg"; | ||
"snippy" = "cmp-snippy"; | ||
"spell" = "cmp-spell"; | ||
"tmux" = "cmp-tmux"; | ||
"treesitter" = "cmp-treesitter"; | ||
"ultisnips" = "cmp-nvim-ultisnips"; | ||
"vim_lsp" = "cmp-vim-lsp"; | ||
"vimwiki-tags" = "cmp-vimwiki-tags"; | ||
"vsnip" = "cmp-vsnip"; | ||
"zsh" = "cmp-zsh"; | ||
}: | ||
with helpers.vim-plugin; | ||
with lib; { | ||
mkCmpSourcePlugin = { | ||
name, | ||
extraPlugins ? [], | ||
useDefaultPackage ? true, | ||
... | ||
}: | ||
mkVimPlugin config { | ||
inherit name; | ||
extraPlugins = extraPlugins ++ (lists.optional useDefaultPackage pkgs.vimPlugins.${name}); | ||
}; | ||
} | ||
|
||
pluginAndSourceNames = { | ||
"buffer" = "cmp-buffer"; | ||
"calc" = "cmp-calc"; | ||
"dap" = "cmp-dap"; | ||
"cmdline" = "cmp-cmdline"; | ||
"cmp-clippy" = "cmp-clippy"; | ||
"cmp-cmdline-history" = "cmp-cmdline-history"; | ||
"cmp_pandoc" = "cmp-pandoc-nvim"; | ||
"cmp_tabby" = "cmp-tabby"; | ||
"cmp_tabnine" = "cmp-tabnine"; | ||
"codeium" = "codeium-nvim"; | ||
"conventionalcommits" = "cmp-conventionalcommits"; | ||
"copilot" = "copilot-cmp"; | ||
"crates" = "crates-nvim"; | ||
"dictionary" = "cmp-dictionary"; | ||
"digraphs" = "cmp-digraphs"; | ||
"emoji" = "cmp-emoji"; | ||
"fish" = "cmp-fish"; | ||
"fuzzy_buffer" = "cmp-fuzzy-buffer"; | ||
"fuzzy_path" = "cmp-fuzzy-path"; | ||
"git" = "cmp-git"; | ||
"greek" = "cmp-greek"; | ||
"latex_symbols" = "cmp-latex-symbols"; | ||
"look" = "cmp-look"; | ||
"luasnip" = "cmp_luasnip"; | ||
"nvim_lsp" = "cmp-nvim-lsp"; | ||
"nvim_lsp_document_symbol" = "cmp-nvim-lsp-document-symbol"; | ||
"nvim_lsp_signature_help" = "cmp-nvim-lsp-signature-help"; | ||
"nvim_lua" = "cmp-nvim-lua"; | ||
"npm" = "cmp-npm"; | ||
"omni" = "cmp-omni"; | ||
"pandoc_references" = "cmp-pandoc-references"; | ||
"path" = "cmp-path"; | ||
"rg" = "cmp-rg"; | ||
"snippy" = "cmp-snippy"; | ||
"spell" = "cmp-spell"; | ||
"tmux" = "cmp-tmux"; | ||
"treesitter" = "cmp-treesitter"; | ||
"ultisnips" = "cmp-nvim-ultisnips"; | ||
"vim_lsp" = "cmp-vim-lsp"; | ||
"vimwiki-tags" = "cmp-vimwiki-tags"; | ||
"vsnip" = "cmp-vsnip"; | ||
"zsh" = "cmp-zsh"; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters