mirror of
https://github.com/LunarVim/LunarVim.git
synced 2024-09-21 02:55:09 +02:00
4c3c3f3885
- Enable querying the language-server for the `root_dir` - Use `root_dir` to set the current working-directory (CWD) - Make vim-rooter configurable and add an option to disable it Inspired by "ahmedkhalf/lsp-rooter.nvim"
15 lines
409 B
Lua
15 lines
409 B
Lua
local M = {}
|
|
function M.config()
|
|
lvim.builtin.rooter = {
|
|
--- This is on by default since it's currently the expected behavior.
|
|
---@usage set to false to disable vim-rooter.
|
|
active = true,
|
|
silent_chdir = 1,
|
|
manual_only = 0,
|
|
}
|
|
end
|
|
function M.setup()
|
|
vim.g.rooter_silent_chdir = lvim.builtin.rooter.silent_chdir
|
|
vim.g.rooter_manual_only = lvim.builtin.rooter.manual_only
|
|
end
|
|
return M
|