59 lines
850 B
Nix
59 lines
850 B
Nix
{
|
|
plugins.lsp = {
|
|
enable = true;
|
|
|
|
servers = {
|
|
# TypeScript / JavaScript
|
|
tsserver.enable = true;
|
|
|
|
# HTML
|
|
html.enable = true;
|
|
|
|
# CSS
|
|
cssls.enable = true;
|
|
|
|
# JSON
|
|
jsonls.enable = true;
|
|
|
|
# Rust
|
|
rust-analyzer = {
|
|
enable = true;
|
|
installRustc = true;
|
|
installCargo = true;
|
|
};
|
|
|
|
# Python
|
|
pyright.enable = true;
|
|
|
|
# C/C++
|
|
ccls.enable = true;
|
|
|
|
# Yaml
|
|
yamlls.enable = true;
|
|
|
|
# Lua
|
|
lua-ls.enable = true;
|
|
|
|
# Nix
|
|
nil-ls.enable = true;
|
|
};
|
|
};
|
|
|
|
plugins.lsp-format.enable = true;
|
|
|
|
autoCmd = [
|
|
{
|
|
event = [
|
|
"BufRead"
|
|
"BufNewFile"
|
|
];
|
|
pattern = [
|
|
"*.txt"
|
|
"*.md"
|
|
"*.tex"
|
|
"LICENSE"
|
|
];
|
|
command = "setlocal spell";
|
|
}
|
|
];
|
|
} |