Files
nix-config/modules/programs/nixvim/_nixvim-config/plugins/lsp.nix
Weckyy702 e34b5ecce3 Update to (somewhat?) dendritic pattern
Heavily inspired by https://github.com/Doc-Steve/dendritic-design-with-flake-parts.

> Atomic commits? Never heard of them!
2026-03-15 15:04:47 +01:00

37 lines
753 B
Nix

{ ... }: {
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;
};
keymaps = [
{
key = "<leader>e";
action = "<cmd>lua vim.diagnostic.open_float()<CR>";
options.desc = "Open Diagnostics";
}
];
};
plugins.lspconfig.enable = true;
plugins.clangd-extensions.enable = true;
}