mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 08:35:43 +02:00
37 lines
656 B
Nix
37 lines
656 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 = {
|
|
gopls = {
|
|
exclude = ["gopls"];
|
|
order = ["gopls" "efm"];
|
|
sync = true;
|
|
force = true;
|
|
|
|
# Test the ability to provide extra options for each filetype
|
|
someRandomOption = 42;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|