Merge branch 'master' of https://git.overmorrowtechsolutions.ca/undrpaidtekmnky/neovim-config
This commit is contained in:
commit
a9f97f6b75
1 file changed
+23
-1
@@ -1 +1,23 @@
|
||||
return { "Civitasv/cmake-tools.nvim" }
|
||||
return {
|
||||
"Civitasv/cmake-tools.nvim",
|
||||
lazy = true,
|
||||
init = function()
|
||||
local loaded = false
|
||||
local function check()
|
||||
local cwd = vim.uv.cwd()
|
||||
if vim.fn.filereadable(cwd .. "/CMakeLists.txt") == 1 then
|
||||
require("lazy").load({ plugins = { "cmake-tools.nvim" } })
|
||||
loaded = true
|
||||
end
|
||||
end
|
||||
check()
|
||||
vim.api.nvim_create_autocmd("DirChanged", {
|
||||
callback = function()
|
||||
if not loaded then
|
||||
check()
|
||||
end
|
||||
end,
|
||||
})
|
||||
end,
|
||||
opts = {},
|
||||
}
|
||||
Reference in new issue
Block a user