Skip to content

Custom Plugin path #1

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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