mirror of
https://github.com/youwen5/neovim-flake.git
synced 2024-11-24 10:53:51 -08:00
feat: add typst preview
This commit is contained in:
parent
88462d0794
commit
da19031199
6 changed files with 48 additions and 1 deletions
|
@ -6,5 +6,19 @@
|
|||
"TermOpen"
|
||||
];
|
||||
}
|
||||
# {
|
||||
# command = {
|
||||
# __raw = ''
|
||||
# require('typst-preview').update()
|
||||
# '';
|
||||
# };
|
||||
# event = [
|
||||
# "BufEnter"
|
||||
# "BufWinEnter"
|
||||
# ];
|
||||
# pattern = [
|
||||
# "*.typ"
|
||||
# ];
|
||||
# }
|
||||
];
|
||||
}
|
||||
|
|
|
@ -17,6 +17,7 @@
|
|||
standalonePlugins = [
|
||||
"nvim-treesitter"
|
||||
"vimplugin-treesitter-grammar-nix"
|
||||
"vimplugin-typst-preview.nvim"
|
||||
];
|
||||
};
|
||||
byteCompileLua = {
|
||||
|
|
|
@ -9,5 +9,6 @@
|
|||
./misc.nix
|
||||
./navigation.nix
|
||||
./treesitter.nix
|
||||
./typst.nix
|
||||
];
|
||||
}
|
||||
|
|
10
config/plugins/typst.nix
Normal file
10
config/plugins/typst.nix
Normal file
|
@ -0,0 +1,10 @@
|
|||
{ inputs, pkgs, ... }:
|
||||
{
|
||||
plugins.typst-vim.enable = true;
|
||||
extraPlugins = [
|
||||
(pkgs.vimUtils.buildVimPlugin {
|
||||
name = "typst-preview.nvim";
|
||||
src = inputs.typst-preview;
|
||||
})
|
||||
];
|
||||
}
|
19
flake.lock
19
flake.lock
|
@ -337,7 +337,8 @@
|
|||
"nixpkgs": "nixpkgs",
|
||||
"nixvim": "nixvim",
|
||||
"render-markdown": "render-markdown",
|
||||
"satellite": "satellite"
|
||||
"satellite": "satellite",
|
||||
"typst-preview": "typst-preview"
|
||||
}
|
||||
},
|
||||
"satellite": {
|
||||
|
@ -391,6 +392,22 @@
|
|||
"repo": "treefmt-nix",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"typst-preview": {
|
||||
"flake": false,
|
||||
"locked": {
|
||||
"lastModified": 1724595641,
|
||||
"narHash": "sha256-kJ6IfLSBmJMgEFuCy6fGtqSRBXjt2Aoxu2NW9iyzRLU=",
|
||||
"owner": "chomosuke",
|
||||
"repo": "typst-preview.nvim",
|
||||
"rev": "7ae2b82cf334819494505b772745beb28705b12b",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "chomosuke",
|
||||
"repo": "typst-preview.nvim",
|
||||
"type": "github"
|
||||
}
|
||||
}
|
||||
},
|
||||
"root": "root",
|
||||
|
|
|
@ -30,6 +30,10 @@
|
|||
url = "github:Eandrju/cellular-automaton.nvim";
|
||||
flake = false;
|
||||
};
|
||||
typst-preview = {
|
||||
url = "github:chomosuke/typst-preview.nvim";
|
||||
flake = false;
|
||||
};
|
||||
};
|
||||
|
||||
outputs =
|
||||
|
|
Loading…
Reference in a new issue