mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-22 17:03:31 +02:00
packer: init plugin
This commit is contained in:
parent
5ffa2b4543
commit
f7e02b3ccf
6 changed files with 119 additions and 22 deletions
|
@ -17,8 +17,7 @@ in
|
|||
|
||||
disabledLanguages = mkOption {
|
||||
type = types.listOf types.str;
|
||||
# Nix is out of date right now! Try not to use it :D
|
||||
default = [ "nix" ];
|
||||
default = [];
|
||||
description = "A list of languages to disable";
|
||||
};
|
||||
|
||||
|
@ -76,11 +75,17 @@ in
|
|||
};
|
||||
in mkIf cfg.enable {
|
||||
programs.nixvim = {
|
||||
extraPlugins = [ pkgs.vimPlugins.nvim-treesitter ];
|
||||
|
||||
extraConfigLua = ''
|
||||
require('nvim-treesitter.configs').setup(${helpers.toLuaObject tsOptions})
|
||||
'';
|
||||
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'';
|
||||
}];
|
||||
};
|
||||
extraPackages = [ pkgs.tree-sitter ];
|
||||
|
||||
options = mkIf cfg.folding {
|
||||
foldmethod = "expr";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue