summaryrefslogtreecommitdiff
path: root/lua/lvim/core/project.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/lvim/core/project.lua')
-rw-r--r--lua/lvim/core/project.lua13
1 files changed, 3 insertions, 10 deletions
diff --git a/lua/lvim/core/project.lua b/lua/lvim/core/project.lua
index 17473c55..f2da6c33 100644
--- a/lua/lvim/core/project.lua
+++ b/lua/lvim/core/project.lua
@@ -1,13 +1,7 @@
local M = {}
function M.config()
- lvim.builtin.project = {
- ---@usage set to false to disable project.nvim.
- --- This is on by default since it's currently the expected behavior.
- active = true,
-
- on_config_done = nil,
-
+ local config = {
---@usage set to true to disable setting the current-woriking directory
--- Manual mode doesn't automatically change your root directory, so you have
--- the option to manually do so using `:ProjectRoot` command.
@@ -50,6 +44,8 @@ function M.config()
---@usage path to store the project history for use in telescope
datapath = get_cache_dir(),
}
+ ---@cast config +LvimBuiltin
+ lvim.builtin.project = config
end
function M.setup()
@@ -59,9 +55,6 @@ function M.setup()
end
project.setup(lvim.builtin.project)
- if lvim.builtin.project.on_config_done then
- lvim.builtin.project.on_config_done(project)
- end
end
return M