nixvim plugins

install all currently wanted plugins
This commit is contained in:
2026-04-13 18:09:16 +02:00
parent d7b58e2216
commit 761067ca6e
82 changed files with 1201 additions and 1468 deletions

View File

@@ -1,17 +1,45 @@
{ ... }:
{ pkgs,... }:
{
programs.nixvim = {
extraPackages = with pkgs; [
texliveFull
texlivePackages.standalone
texlivePackages.relsize # needed for BA
# papis-nvim
];
plugins = {
vimtex = {
enable = true;
lazyLoad.settings.filetype = [ "tex" ];
settings = {
view_automatic = false;
mappings_disable = {
"n" = [ "K" ];
};
view_method = "zathura";
};
};
ltex-extra = {
enable = true;
lazyLoad.settings.filetype = [ "tex" ];
};
texpresso = {
enable = true;
lazyload.settings.filetype = [ "tex" ];
};
which-key.settings.spec = [
{
__unkeyed-1 = "<leader>v";
group = "Vimtex";
icon = " ";
}
];
};
autoGroups = {
@@ -36,5 +64,36 @@
'';
}
];
keymaps = [
{
key = "<leader>vc";
action = "<cmd>VimtexCompile<cr>";
options.desc = "Start Vimtex";
}
{
key = "<leader>vs";
action = "<cmd>VimtexStop<cr>";
options.desc = "Stop Vimtex";
}
{
key = "<leader>vr";
action = "<cmd>VimtexClean<cr>";
options.desc = "Clean Vimtex";
}
];
files."ftplugin/latex.lua".keymaps = [
{
action = "<CMD>Texpresso %<CR>";
key = "<C-k>t";
mode = [
"n"
"v"
"i"
];
options.desc = "Start Texpresso";
}
];
};
}