Skip to content

Including OS-managed plugins (from rtp) #1017

Answered by abeldekat
shazow asked this question in Q&A
Discussion options

You must be logged in to vote

Hello @shazow,

Lazy.nvim has a dir property.
Using an environment variable pointing to the path managed by the nix package manager, this should work:

lua/plugins/your_treesitter.lua:

  {
    "nvim-treesitter/nvim-treesitter",
    dir = vim.env.YOUR_NIX_LOCATION .. "/nvim-treesitter",
  }

Now, lazy.nvim only manages the loading of the plugin, and assumes its present at the location specified.

Best regards!

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@abeldekat
Comment options

@shazow
Comment options

@shazow
Comment options

@shazow
Comment options

@abeldekat
Comment options

Answer selected by shazow
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants