mirror of
https://github.com/nix-community/nixvim.git
synced 2025-08-02 00:54:48 +02:00
plugins/lsp: move related plugins to by-name
This commit is contained in:
parent
91c6b62881
commit
8815180c62
23 changed files with 0 additions and 11 deletions
40
tests/test-sources/plugins/by-name/lsp-format/default.nix
Normal file
40
tests/test-sources/plugins/by-name/lsp-format/default.nix
Normal file
|
@ -0,0 +1,40 @@
|
|||
{
|
||||
empty = {
|
||||
plugins.lsp.enable = true;
|
||||
plugins.lsp-format.enable = true;
|
||||
};
|
||||
|
||||
example = {
|
||||
plugins = {
|
||||
lsp = {
|
||||
enable = true;
|
||||
|
||||
servers.gopls = {
|
||||
enable = true;
|
||||
onAttach.function = ''
|
||||
x = 12
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
lsp-format = {
|
||||
enable = true;
|
||||
|
||||
setup = {
|
||||
go = {
|
||||
exclude = [ "gopls" ];
|
||||
order = [
|
||||
"gopls"
|
||||
"efm"
|
||||
];
|
||||
sync = true;
|
||||
force = true;
|
||||
|
||||
# Test the ability to provide extra options for each filetype
|
||||
someRandomOption = 42;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue