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

29 lines
511 B
Nix
Raw Normal View History

2022-09-19 20:43:20 +03:00
{ nvim-lspconfig
2022-11-10 00:01:34 +03:00
, nlsp-settings-nvim
2022-09-19 20:43:20 +03:00
, lspsaga-nvim
, luasnip
, nvim-cmp
, cmp-nvim-lsp
2022-11-01 11:23:55 +03:00
, cmp-luasnip
2022-09-19 20:43:20 +03:00
, ...
}:
2022-09-16 23:42:53 +03:00
2022-09-19 20:43:20 +03:00
let
2022-10-22 23:35:27 +03:00
inherit (builtins) readFile;
2022-11-10 00:01:34 +03:00
lsp = [ nvim-lspconfig nlsp-settings-nvim lspsaga-nvim ];
2022-09-19 20:43:20 +03:00
snippets = [ luasnip ];
completions = [
2022-09-16 23:42:53 +03:00
nvim-cmp # Autocompletion
cmp-nvim-lsp # LSP source for nvim-cmp
2022-11-01 11:23:55 +03:00
cmp-luasnip # Snippets source for nvim-cmp
2022-09-16 09:59:25 +03:00
];
2022-09-19 20:43:20 +03:00
in
{
2022-10-22 23:35:27 +03:00
luaConfig = (readFile ./lspconfig.lua)
+ (readFile ./nvim-cmp.lua);
2022-09-19 20:43:20 +03:00
plugins = lsp
++ snippets
++ completions;
2022-09-16 09:59:25 +03:00
}