nixvim plugins
install all currently wanted plugins
This commit is contained in:
30
home/programs/nixvim/plugins/typst-preview.nix
Normal file
30
home/programs/nixvim/plugins/typst-preview.nix
Normal file
@@ -0,0 +1,30 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
programs.nixvim = {
|
||||
plugins.typst-preview = {
|
||||
enable = true;
|
||||
lazyLoad = {
|
||||
settings = {
|
||||
ft = [ "typst" ];
|
||||
cmd = "TypstPreview";
|
||||
};
|
||||
};
|
||||
|
||||
settings.open_command = "qutebrowser --target tab %s";
|
||||
};
|
||||
|
||||
files."ftplugin/typst.lua".keymaps = [
|
||||
{
|
||||
action = "<CMD>TypstPreview<CR>";
|
||||
key = "<C-k>t";
|
||||
mode = [
|
||||
"n"
|
||||
"v"
|
||||
"i"
|
||||
];
|
||||
options.desc = "Typst Preview";
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user