plugins/lsp: move related plugins to by-name

This commit is contained in:
Matt Sturgeon 2024-09-04 17:47:06 +01:00
parent 91c6b62881
commit 8815180c62
No known key found for this signature in database
GPG key ID: 4F91844CED1A8299
23 changed files with 0 additions and 11 deletions

View file

@ -0,0 +1,40 @@
{
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;
};
};
};
};
};
}