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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

80 lines
1.4 KiB
Nix
Raw Normal View History

2023-05-12 11:01:10 +02:00
{
legacy-empty = {
2023-05-12 11:01:10 +02:00
plugins.lsp.enable = true;
plugins.lsp-format.enable = true;
};
legacy-example = {
2023-05-12 11:01:10 +02:00
plugins = {
lsp = {
enable = true;
servers.gopls = {
enable = true;
onAttach.function = ''
x = 12
'';
};
};
lsp-format = {
enable = true;
settings = {
2024-05-19 18:33:14 +02:00
go = {
2023-05-12 11:01:10 +02:00
exclude = [ "gopls" ];
order = [
"gopls"
"efm"
];
sync = true;
force = true;
# Test the ability to provide extra options for each filetype
someRandomOption = 42;
};
};
};
};
};
empty = {
plugins.lspconfig.enable = true;
plugins.lsp-format.enable = true;
};
none = {
plugins.lspconfig.enable = true;
plugins.lsp-format = {
enable = true;
lspServersToEnable = "none";
};
};
example = {
plugins = {
lspconfig.enable = true;
lsp.servers.gopls.enable = true;
lsp-format = {
enable = true;
settings = {
go = {
exclude = [ "gopls" ];
order = [
"gopls"
"efm"
];
sync = true;
force = true;
# Test the ability to provide extra options for each filetype
someRandomOption = 42;
};
};
};
};
};
2023-05-12 11:01:10 +02:00
}