mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 08:35:43 +02:00
treesitter: don't use packer
This commit is contained in:
parent
0116bf3f60
commit
3dceb67a34
2 changed files with 8 additions and 13 deletions
6
flake.lock
generated
6
flake.lock
generated
|
@ -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": {
|
||||||
|
|
|
@ -75,16 +75,11 @@ in
|
||||||
};
|
};
|
||||||
in mkIf cfg.enable {
|
in mkIf cfg.enable {
|
||||||
programs.nixvim = {
|
programs.nixvim = {
|
||||||
plugins.packer = {
|
extraConfigLua = ''
|
||||||
enable = true;
|
|
||||||
plugins = [{
|
|
||||||
name = "nvim-treesitter/nvim-treesitter";
|
|
||||||
run = ":TSUpdate";
|
|
||||||
config = helpers.mkRaw ''function()
|
|
||||||
require('nvim-treesitter.configs').setup(${helpers.toLuaObject tsOptions})
|
require('nvim-treesitter.configs').setup(${helpers.toLuaObject tsOptions})
|
||||||
end'';
|
'';
|
||||||
}];
|
|
||||||
};
|
extraPlugins = [ pkgs.vimPlugins.nvim-treesitter ];
|
||||||
extraPackages = [ pkgs.tree-sitter pkgs.nodejs ];
|
extraPackages = [ pkgs.tree-sitter pkgs.nodejs ];
|
||||||
|
|
||||||
options = mkIf cfg.folding {
|
options = mkIf cfg.folding {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue