debugging watcher
This commit is contained in:
parent
8c28466937
commit
9169d2f789
3
init.lua
3
init.lua
|
@ -956,9 +956,6 @@ require('lazy').setup({
|
||||||
-- In normal mode type `<space>sh` then write `lazy.nvim-plugin`
|
-- In normal mode type `<space>sh` then write `lazy.nvim-plugin`
|
||||||
-- you can continue same window with `<space>sr` which resumes last telescope search
|
-- you can continue same window with `<space>sr` which resumes last telescope search
|
||||||
}, {
|
}, {
|
||||||
-- rocks = {
|
|
||||||
-- enabled = false,
|
|
||||||
-- },
|
|
||||||
ui = {
|
ui = {
|
||||||
-- If you are using a Nerd Font: set icons to an empty table which will use the
|
-- If you are using a Nerd Font: set icons to an empty table which will use the
|
||||||
-- default lazy.nvim defined Nerd Font icons, otherwise define a unicode icons table
|
-- default lazy.nvim defined Nerd Font icons, otherwise define a unicode icons table
|
||||||
|
|
|
@ -47,12 +47,12 @@ function M.setup_clangd(commands_dir)
|
||||||
capabilities = require('blink.cmp').get_lsp_capabilities(),
|
capabilities = require('blink.cmp').get_lsp_capabilities(),
|
||||||
}
|
}
|
||||||
|
|
||||||
for _, bufnr in ipairs(vim.api.nvim_list_bufs()) do
|
-- for _, bufnr in ipairs(vim.api.nvim_list_bufs()) do
|
||||||
local ft = vim.api.nvim_get_option_value('filetype', { buf = bufnr })
|
-- local ft = vim.api.nvim_get_option_value('filetype', { buf = bufnr })
|
||||||
if vim.tbl_contains(M.clang_filetypes, ft) then
|
-- if vim.tbl_contains(M.clang_filetypes, ft) then
|
||||||
vim.lsp.buf_attach_client(bufnr, vim.lsp.get_clients({ name = 'clangd' })[1].id)
|
-- vim.lsp.buf_attach_client(bufnr, vim.lsp.get_clients({ name = 'clangd' })[1].id)
|
||||||
end
|
-- end
|
||||||
end
|
-- end
|
||||||
end
|
end
|
||||||
|
|
||||||
function M.pick_commands_dir()
|
function M.pick_commands_dir()
|
||||||
|
|
Loading…
Reference in New Issue