mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-28 03:20:08 +02:00
plugins/lsp-format: add plugin + test
This commit is contained in:
parent
859ae3a843
commit
2057828096
4 changed files with 156 additions and 1 deletions
37
tests/test-sources/plugins/lsp/lsp-format.nix
Normal file
37
tests/test-sources/plugins/lsp/lsp-format.nix
Normal file
|
@ -0,0 +1,37 @@
|
|||
{
|
||||
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 = {
|
||||
gopls = {
|
||||
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