Nix-Hyprland/nixos/modules/nixvim/plugins/lsp.nix
2024-04-17 05:52:14 +05:00

47 lines
864 B
Nix

{
programs.nixvim.plugins = {
treesitter = {
enable = true;
nixvimInjections = true;
folding = true;
indent = true;
};
treesitter-refactor = {
enable = true;
highlightDefinitions = {
enable = true;
# Set to false if you have an `updatetime` of ~100.
clearOnCursorMove = false;
};
};
hmts.enable = true;
# lspkind = {
# enable = true;
#
# cmp = {
# enable = true;
# menu = {
# nvim_lsp = "[LSP]";
# nvim_lua = "[api]";
# path = "[path]";
# luasnip = "[snip]";
# buffer = "[buffer]";
# neorg = "[neorg]";
# cmp_tabby = "[Tabby]";
# };
# };
# };
lsp = {
enable = true;
servers = {
nil_ls.enable = true;
};
};
};
}