nix-community.nixvim/tests/test-sources/plugins/lsp/lsp-format.nix
2024-05-20 12:01:55 +02:00

40 lines
697 B
Nix

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