nix-community.nixvim/tests/test-sources/plugins/lsp/lsp-format.nix

38 lines
656 B
Nix
Raw Normal View History

2023-05-12 11:01:10 +02:00
{
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;
};
};
};
};
};
}