nixos-config/config/programs/vim/modules/languages/nvim-cmp.nix
2022-08-15 15:05:17 +01:00

32 lines
566 B
Nix

{pkgs, ...}: {
output.plugins = with pkgs.vimPlugins; [
nvim-cmp
# Various sources
cmp_luasnip
cmp-buffer
cmp-calc
cmp-spell
cmp-path
cmp-nvim-lua
cmp-nvim-lsp
cmp-latex-symbols
];
output.extraConfig = "lua require('cmp-config')";
plugin.setup.cmp = {
# TODO: maybe do non-default keybindings?
# See :help cmp-mapping
sources = [
{name = "path";}
{name = "calc";}
{name = "nvim_lsp";}
{name = "nvim_lua";}
{name = "latex_symbols";}
{name = "buffer";}
];
};
}