mirror of
https://github.com/nvim-lua/kickstart.nvim.git
synced 2025-06-25 14:48:33 +02:00
27 lines
714 B
Lua
27 lines
714 B
Lua
-- You can add your own plugins here or in other files in this directory!
|
|
-- I promise not to create any merge conflicts in this directory :)
|
|
--
|
|
-- See the kickstart.nvim README for more information
|
|
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 = {},
|
|
}
|