summaryrefslogtreecommitdiff
path: root/lua/default-config.lua
diff options
context:
space:
mode:
authorkylo252 <[email protected]>2021-08-03 18:10:54 +0200
committerGitHub <[email protected]>2021-08-03 12:10:54 -0400
commit4c3c3f388557a182794bffdbf923129c66af885a (patch)
tree4138b428ccfbee42ffecdbc88bc7d2d42fa67195 /lua/default-config.lua
parentb608b08ff3a5f28e7c57bc7bd7a30cfe2ab5c111 (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/default-config.lua')
-rw-r--r--lua/default-config.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/lua/default-config.lua b/lua/default-config.lua
index 7563d36d..53aff8c9 100644
--- a/lua/default-config.lua
+++ b/lua/default-config.lua
@@ -85,6 +85,8 @@ lvim = {
popup_border = "single",
on_attach_callback = nil,
on_init_callback = nil,
+ ---@usage query the project directory from the language server and use it to set the CWD
+ smart_cwd = true,
},
plugins = {
@@ -1248,3 +1250,4 @@ require("core.terminal").config()
require("core.telescope").config()
require("core.treesitter").config()
require("core.nvimtree").config()
+require("core.rooter").config()