more fixes

This commit is contained in:
dlond 2025-05-27 05:07:19 +12:00
parent d1bd0c8fb8
commit 3885d2be63
1 changed files with 4 additions and 1 deletions

View File

@ -119,7 +119,10 @@ return {
lspconfig.clangd.setup { lspconfig.clangd.setup {
cmd = self:make_clangd_cmd(self:get_target()), cmd = self:make_clangd_cmd(self:get_target()),
} }
local bufname = vim.api.nvim_buf_get_name(0)
if bufname ~= '' then
vim.cmd 'edit' vim.cmd 'edit'
end
end, 200) end, 200)
end, end,
} }