treesitter: don't use packer

This commit is contained in:
Pedro Alves 2021-12-11 15:09:11 +00:00
parent 0116bf3f60
commit 3dceb67a34
2 changed files with 8 additions and 13 deletions

6
flake.lock generated
View file

@ -2,11 +2,11 @@
"nodes": {
"nixpkgs": {
"locked": {
"lastModified": 1635792138,
"narHash": "sha256-D79GqaYrwgyM4wvOPbQeKveAHROnVh97F36iSGZO9uA=",
"lastModified": 1638986258,
"narHash": "sha256-OceRdctKZRSgqQxVRvvNB0MaEnFMzQqjUffecoDE9eI=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "b165ce0c4efbb74246714b5c66b6bcdce8cde175",
"rev": "581d2d6c9cd5c289002203581d8aa0861963a933",
"type": "github"
},
"original": {

View file

@ -75,16 +75,11 @@ in
};
in mkIf cfg.enable {
programs.nixvim = {
plugins.packer = {
enable = true;
plugins = [{
name = "nvim-treesitter/nvim-treesitter";
run = ":TSUpdate";
config = helpers.mkRaw ''function()
require('nvim-treesitter.configs').setup(${helpers.toLuaObject tsOptions})
end'';
}];
};
extraConfigLua = ''
require('nvim-treesitter.configs').setup(${helpers.toLuaObject tsOptions})
'';
extraPlugins = [ pkgs.vimPlugins.nvim-treesitter ];
extraPackages = [ pkgs.tree-sitter pkgs.nodejs ];
options = mkIf cfg.folding {