mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-16 12:14:32 +02:00
plugins/lspconfig: init
A simplified replacement for `plugins.lsp`. Eventually, once the `lsp` and `plugins.lspconfig` modules are mature, `plugins.lsp` will be deprecated and/or aliased.
This commit is contained in:
parent
29aa60b43a
commit
556eb29548
3 changed files with 92 additions and 2 deletions
24
tests/test-sources/plugins/by-name/lspconfig/default.nix
Normal file
24
tests/test-sources/plugins/by-name/lspconfig/default.nix
Normal file
|
@ -0,0 +1,24 @@
|
|||
{
|
||||
empty = {
|
||||
plugins.lspconfig.enable = true;
|
||||
};
|
||||
|
||||
# TODO: test integration with `vim.lsp.enable`, etc
|
||||
# TODO: test some examples of enabling/configuring specific LSP servers
|
||||
|
||||
plugins-lsp-warning = {
|
||||
plugins.lsp.enable = true;
|
||||
plugins.lspconfig.enable = true;
|
||||
|
||||
test.warnings = expect: [
|
||||
(expect "count" 1)
|
||||
(expect "any" ''
|
||||
Nixvim (plugins.lspconfig): Both `plugins.lspconfig.enable' and `plugins.lsp.enable' configure the same plugin (nvim-lspconfig).
|
||||
'')
|
||||
(expect "any" "`plugins.lspconfig.enable' defined in `/nix/store/")
|
||||
(expect "any" "`plugins.lsp.enable' defined in `/nix/store/")
|
||||
];
|
||||
|
||||
test.buildNixvim = false;
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue