[Refactor]: Remove vim-rooter and smart-cwd; then use project.nvim (#1315)

* Replace vim-rooter with project.nvim

* Implement stylua format

* Remove smart_cwd

* Implicitly update nvim-tree dir when project active

* Link datapath to cache

* Fix stylua

* Fix lint

* Fix telescope bug

* Fix telescope dependency

* Fix telescope once and for all

* Fix telescope once again
This commit is contained in:
Ahmed Khalf 2021-08-18 09:34:26 +04:00 committed by GitHub
parent 21b621c95a
commit b9b9c69615
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 69 additions and 42 deletions

View file

@ -60,6 +60,12 @@ M.setup = function()
g["nvim_tree_" .. opt] = val
end
-- Implicitly update nvim-tree when project module is active
if lvim.builtin.project.active then
vim.g.nvim_tree_update_cwd = 1
vim.g.nvim_tree_respect_buf_cwd = 1
end
local tree_cb = nvim_tree_config.nvim_tree_callback
if not g.nvim_tree_bindings then