This repository has been archived on 2024-05-17. You can view files and clone it, but cannot push or open issues or pull requests.
neovim/plugins/lsp/default.nix

27 lines
471 B
Nix

{ nvim-lspconfig
, lspsaga-nvim
, luasnip
, nvim-cmp
, cmp-nvim-lsp
, cmp_luasnip
, ...
}:
let
inherit (builtins) readFile;
lsp = [ nvim-lspconfig lspsaga-nvim ];
snippets = [ luasnip ];
completions = [
nvim-cmp # Autocompletion
cmp-nvim-lsp # LSP source for nvim-cmp
cmp_luasnip # Snippets source for nvim-cmp
];
in
{
luaConfig = (readFile ./lspconfig.lua)
+ (readFile ./nvim-cmp.lua);
plugins = lsp
++ snippets
++ completions;
}