feat: add vimtex

This commit is contained in:
Moritz Böhme 2024-06-27 10:12:38 +02:00
parent 1a2369c8db
commit b03934b4a3
No known key found for this signature in database
GPG key ID: 970C6E89EB0547A9
6 changed files with 52 additions and 8 deletions

View file

@ -1,8 +1,7 @@
{ pkgs, ... }:
with builtins;
{
config.home-manager.users.moritz.programs.neovim.lazy.plugins = with pkgs.vimPlugins; [
config.home-manager.users.moritz.programs.neovim.lazy.plugins = [
(
let
parserDir = pkgs.symlinkJoin {
@ -11,13 +10,14 @@ with builtins;
};
in
{
plugin = nvim-treesitter;
plugin = pkgs.vimPlugins.nvim-treesitter;
event = [ "BufReadPost" "BufNewFile" ];
opts = {
sync_install = false;
auto_install = false;
highlight = {
enable = true;
disable = [ "latex" ];
};
textobjects =
{
@ -60,8 +60,8 @@ with builtins;
'';
priority = 100;
dependencies = [
{ plugin = nvim-treesitter-textobjects; }
{ plugin = nvim-ts-context-commentstring; opts = { }; }
{ plugin = pkgs.vimPlugins.nvim-treesitter-textobjects; }
{ plugin = pkgs.vimPlugins.nvim-ts-context-commentstring; opts = { }; }
];
}
)