nixvim plugins
install all currently wanted plugins
This commit is contained in:
@@ -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";
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user