plugins/lsp-format: add plugin + test

This commit is contained in:
Gaetan Lepage 2023-05-12 11:01:10 +02:00 committed by Gaétan Lepage
parent 859ae3a843
commit 2057828096
4 changed files with 156 additions and 1 deletions

View 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;
};
};
};
};
};
}