nvim-projectconfig icon indicating copy to clipboard operation
nvim-projectconfig copied to clipboard

You should use the neovim function stdpath instead of hardcoding the standard path

Open willocho opened this issue 3 years ago • 1 comments

In nvim-projectconfig.lua, you hardcode the config path. It should instead use the neovim stdpath function It is:

local config = {
    silent = true,
    autocmd = true,
    project_dir = '~/.config/nvim/projects/',
    project_config = {},
}

It should be:

local config = {
    silent = true,
    autocmd = true,
    project_dir = vim.fn.stdpath('config') .. '/projects/',
    project_config = {},
}

willocho avatar Sep 01 '22 16:09 willocho

it is not hardcode you can change it on setup. but if you want to create a PR for change i can accept.

windwp avatar Sep 01 '22 23:09 windwp