chore: update inputs

This commit is contained in:
Moritz Böhme 2024-08-18 13:03:18 +02:00
parent 9e2c4205d9
commit 6bcccc1ff9
No known key found for this signature in database
GPG key ID: 970C6E89EB0547A9
7 changed files with 334 additions and 342 deletions

View file

@ -1,16 +1,17 @@
{ pkgs, ... }:
{ pkgs, inputs, lib, ... }:
{
config.home-manager.users.moritz.programs.neovim.lazy.plugins = [
(
let
nvim-treesitter = pkgs.vimPlugins.nvim-treesitter;
parserDir = pkgs.symlinkJoin {
name = "tresitter-grammars-all";
paths = pkgs.vimPlugins.nvim-treesitter.withAllGrammars.dependencies;
paths = nvim-treesitter.withAllGrammars.dependencies;
};
in
{
plugin = pkgs.vimPlugins.nvim-treesitter;
plugin = nvim-treesitter;
event = [ "BufReadPost" "BufNewFile" ];
opts = {
sync_install = false;
@ -51,12 +52,10 @@
};
};
conf =
''
local final_opts = vim.tbl_deep_extend("keep", opts, { parser_install_dir = "${parserDir}" })
require('nvim-treesitter.configs').setup(final_opts)
'';
init = ''
vim.opt.runtimepath:prepend("${parserDir}")
/* lua */ ''
vim.opt.runtimepath:append("${parserDir}")
local final_opts = vim.tbl_deep_extend("keep", opts, { parser_install_dir = "${parserDir}" })
require('nvim-treesitter.configs').setup(final_opts)
'';
priority = 100;
dependencies = [