From 9169d2f78937a5d2e22f828e35478e051e3754c6 Mon Sep 17 00:00:00 2001 From: dlond Date: Fri, 30 May 2025 02:08:35 +1200 Subject: [PATCH] debugging watcher --- init.lua | 3 --- lua/custom/plugins/lsp/clangd.lua | 12 ++++++------ 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/init.lua b/init.lua index bbb64816..29f39c87 100644 --- a/init.lua +++ b/init.lua @@ -956,9 +956,6 @@ require('lazy').setup({ -- In normal mode type `sh` then write `lazy.nvim-plugin` -- you can continue same window with `sr` which resumes last telescope search }, { - -- rocks = { - -- enabled = false, - -- }, ui = { -- 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 diff --git a/lua/custom/plugins/lsp/clangd.lua b/lua/custom/plugins/lsp/clangd.lua index 9a014a21..c1f8b038 100644 --- a/lua/custom/plugins/lsp/clangd.lua +++ b/lua/custom/plugins/lsp/clangd.lua @@ -47,12 +47,12 @@ function M.setup_clangd(commands_dir) capabilities = require('blink.cmp').get_lsp_capabilities(), } - for _, bufnr in ipairs(vim.api.nvim_list_bufs()) do - local ft = vim.api.nvim_get_option_value('filetype', { buf = bufnr }) - if vim.tbl_contains(M.clang_filetypes, ft) then - vim.lsp.buf_attach_client(bufnr, vim.lsp.get_clients({ name = 'clangd' })[1].id) - end - end + -- for _, bufnr in ipairs(vim.api.nvim_list_bufs()) do + -- local ft = vim.api.nvim_get_option_value('filetype', { buf = bufnr }) + -- if vim.tbl_contains(M.clang_filetypes, ft) then + -- vim.lsp.buf_attach_client(bufnr, vim.lsp.get_clients({ name = 'clangd' })[1].id) + -- end + -- end end function M.pick_commands_dir()