mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-08 16:24:32 +02:00
tests/plugins: refactor (#235)
This commit is contained in:
parent
89f54be73a
commit
db5061b4db
38 changed files with 485 additions and 744 deletions
71
tests/test-sources/plugins/nvim-lsp/nvim-lsp.nix
Normal file
71
tests/test-sources/plugins/nvim-lsp/nvim-lsp.nix
Normal file
|
@ -0,0 +1,71 @@
|
|||
{
|
||||
empty = {
|
||||
plugins.lsp.enable = true;
|
||||
};
|
||||
|
||||
example = {
|
||||
plugins.lsp = {
|
||||
enable = true;
|
||||
|
||||
keymaps = {
|
||||
silent = true;
|
||||
diagnostic = {
|
||||
"<leader>k" = "goto_prev";
|
||||
"<leader>j" = "goto_next";
|
||||
};
|
||||
|
||||
lspBuf = {
|
||||
"gd" = "definition";
|
||||
"gD" = "references";
|
||||
"gt" = "type_definition";
|
||||
"gi" = "implementation";
|
||||
"K" = "hover";
|
||||
};
|
||||
};
|
||||
|
||||
servers = {
|
||||
bashls.enable = true;
|
||||
clangd.enable = true;
|
||||
nil_ls.enable = true;
|
||||
rust-analyzer.enable = true;
|
||||
pylsp = {
|
||||
enable = true;
|
||||
filetypes = ["python"];
|
||||
autostart = false;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
all-servers = {
|
||||
plugins.lsp = {
|
||||
enable = true;
|
||||
|
||||
servers = {
|
||||
astro.enable = true;
|
||||
bashls.enable = true;
|
||||
clangd.enable = true;
|
||||
cssls.enable = true;
|
||||
dartls.enable = true;
|
||||
denols.enable = true;
|
||||
eslint.enable = true;
|
||||
elixirls.enable = true;
|
||||
gopls.enable = true;
|
||||
hls.enable = true;
|
||||
html.enable = true;
|
||||
jsonls.enable = true;
|
||||
lua-ls.enable = true;
|
||||
nil_ls.enable = true;
|
||||
pylsp.enable = true;
|
||||
pyright.enable = true;
|
||||
rnix-lsp.enable = true;
|
||||
rust-analyzer.enable = true;
|
||||
tailwindcss.enable = true;
|
||||
texlab.enable = true;
|
||||
tsserver.enable = true;
|
||||
vuels.enable = true;
|
||||
# zls.enable = true; Broken as of 03/17/2023
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue