ITADN

Custom Plugin path

#1OpenUTFeight 创建于 2023-09-21
U
UTFeightcommented
Not everyone probably wants a new file for each plugin they install. Also there is no `path` variable for the location we want to put config in. ```lua { "roobert/tabtree.nvim", config = function(_, opts) require("tabtree").setup(opts) end, opts = { path = [[lua/plugins/configs/]], config_path = [[lua/plugins/init.lua]], add_to_config = true, -- will append to a file (not create one) }, } ``` ------------------ (e.g this is my file-tree) ``` . ├── core │   ├── bootstrap.lua │   ├── default_config.lua │   ├── init.lua │   ├── mappings.lua │   └── utils.lua └── plugins ├── configs │   ├── cmp.lua │   ├── lazy_nvim.lua │   ├── lspconfig.lua │   ├── mason.lua │   ├── nvimtree.lua │   ├── others.lua │   ├── telescope.lua │   └── treesitter.lua ├── init.lua └── venn_nvim.lua ```
2 条评论