cmake, neo-tree, cpp and clang support

cmak support, neo-tree, cpp, clang, etc,,,
This commit is contained in:
Simon Ayoub 2024-07-27 12:44:30 +10:00
parent b6f7005702
commit 897d3c9beb
3 changed files with 59 additions and 12 deletions

View file

@ -2,4 +2,26 @@
-- I promise not to create any merge conflicts in this directory :)
--
-- See the kickstart.nvim README for more information
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 = {},
}

View file

@ -20,6 +20,11 @@ return {
['\\'] = 'close_window',
},
},
filtered_items = {
visible = true,
hide_dotfiles = false,
hide_gitignored = false,
},
},
},
}