mirror of
https://github.com/nvim-lua/kickstart.nvim.git
synced 2025-06-26 07:08:34 +02:00
cmake, neo-tree, cpp and clang support
cmak support, neo-tree, cpp, clang, etc,,,
This commit is contained in:
parent
b6f7005702
commit
897d3c9beb
3 changed files with 59 additions and 12 deletions
|
@ -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 = {},
|
||||
}
|
||||
|
|
|
@ -20,6 +20,11 @@ return {
|
|||
['\\'] = 'close_window',
|
||||
},
|
||||
},
|
||||
filtered_items = {
|
||||
visible = true,
|
||||
hide_dotfiles = false,
|
||||
hide_gitignored = false,
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue