2023-05-12 11:01:10 +02:00
|
|
|
{
|
2025-05-05 11:59:25 -07:00
|
|
|
legacy-empty = {
|
2023-05-12 11:01:10 +02:00
|
|
|
plugins.lsp.enable = true;
|
|
|
|
plugins.lsp-format.enable = true;
|
|
|
|
};
|
|
|
|
|
2025-05-05 11:59:25 -07:00
|
|
|
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;
|
|
|
|
|
2024-10-22 23:34:43 -05:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2025-05-05 11:59:25 -07:00
|
|
|
|
|
|
|
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
|
|
|
}
|