31 lines
655 B
Nix
31 lines
655 B
Nix
{...}: {
|
|
programs.nixvim = {
|
|
dependencies.rust-analyzer.enable = true;
|
|
|
|
lsp = {
|
|
inlayHints.enable = true;
|
|
servers = {
|
|
"*" = {
|
|
config.capabilities.textDocument.semanticTokens.multilineTokenSupport = true;
|
|
config.root_markers = [
|
|
".git"
|
|
];
|
|
};
|
|
clangd = {
|
|
enable = true;
|
|
config.root_markers = [
|
|
"compile_commands.json"
|
|
];
|
|
};
|
|
rust_analyzer = {
|
|
enable = true;
|
|
};
|
|
rnix.enable = true;
|
|
};
|
|
};
|
|
|
|
plugins.lspconfig.enable = true;
|
|
plugins.clangd-extensions.enable = true;
|
|
};
|
|
}
|