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": { "nodes": {
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1635792138, "lastModified": 1638986258,
"narHash": "sha256-D79GqaYrwgyM4wvOPbQeKveAHROnVh97F36iSGZO9uA=", "narHash": "sha256-OceRdctKZRSgqQxVRvvNB0MaEnFMzQqjUffecoDE9eI=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "b165ce0c4efbb74246714b5c66b6bcdce8cde175", "rev": "581d2d6c9cd5c289002203581d8aa0861963a933",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

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