From 4c3c3f388557a182794bffdbf923129c66af885a Mon Sep 17 00:00:00 2001 From: kylo252 <59826753+kylo252@users.noreply.github.com> Date: Tue, 3 Aug 2021 18:10:54 +0200 Subject: 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" --- lua/default-config.lua | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lua/default-config.lua') 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() -- cgit v1.2.3