Skip to content

Custom Plugin path #1

@orhnk

Description

@orhnk

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.

{
  "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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions