configuration.nix/nvim/plugins/default.nix

60 lines
1.4 KiB
Nix
Raw Normal View History

{
gitsigns.enable = true;
lsp = {
enable = true;
servers = {
bashls.enable = true;
clangd.enable = true;
html.enable = true;
jsonls.enable = true;
nil.enable = true;
pyright.enable = true;
rnix-lsp.enable = true;
ruff-lsp.enable = true;
taplo.enable = true;
texlab.enable = true;
typos-lsp.enable = true;
typst-lsp.enable = true;
};
};
lspkind.enable = true;
lualine = {
enable = true;
theme = "gruvbox";
sections = {
lualine_a = [{ name = "mode"; }];
lualine_b = [{ name = "filename"; } { name = "branch"; }];
lualine_y = [{ name = "encoding"; } { name = "fileformat"; } { name = "filetype"; }];
lualine_z = [{ name = "location"; }];
};
};
2024-03-02 21:15:55 +01:00
luasnip = {
enable = true;
extraConfig = { update_events = "TextChanged,TextChangedI"; };
};
nvim-cmp = import ./cmp.nix;
nvim-colorizer = {
enable = true;
userDefaultOptions = {
names = false; # disable named colors (i.e. red)
mode = "virtualtext";
};
};
telescope.enable = true;
2024-03-02 21:15:55 +01:00
treesitter = {
enable = true;
indent = true;
incrementalSelection.enable = true;
};
treesitter-context.enable = true;
trouble.enable = true;
lint = {
enable = true;
lintersByFt = {
rust = [ "typos" ];
latex = [ "chktex" "typos" ];
markdown = [ "typos" ];
};
};
}