diff options
author | kylo252 <[email protected]> | 2021-08-03 18:10:54 +0200 |
---|---|---|
committer | GitHub <[email protected]> | 2021-08-03 12:10:54 -0400 |
commit | 4c3c3f388557a182794bffdbf923129c66af885a (patch) | |
tree | 4138b428ccfbee42ffecdbc88bc7d2d42fa67195 /lua/plugins.lua | |
parent | b608b08ff3a5f28e7c57bc7bd7a30cfe2ab5c111 (diff) |
feat: add lvim.lsp.smart_cwd (#1218)
- 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"
Diffstat (limited to 'lua/plugins.lua')
-rw-r--r-- | lua/plugins.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lua/plugins.lua b/lua/plugins.lua index fc4c47ab..c18dfa2b 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -147,12 +147,14 @@ return { -- vim-rooter { "airblade/vim-rooter", + event = "BufReadPre", config = function() - vim.g.rooter_silent_chdir = 1 + require("core.rooter").setup() if lvim.builtin.rooter.on_config_done then lvim.builtin.rooter.on_config_done() end end, + disable = not lvim.builtin.rooter.active, }, -- Icons |