Change from 'edit' to 'drop' when switching from header/source in clang

This commit is contained in:
Martin Larsson 2024-09-21 16:49:12 +02:00
parent 822d397635
commit 2b1009e9f3

View file

@ -14,7 +14,7 @@ local function switch_source_header(bufnr)
print "Corresponding file cannot be determined" print "Corresponding file cannot be determined"
return return
end end
vim.api.nvim_command("edit " .. vim.uri_to_fname(result)) vim.api.nvim_command("drop " .. vim.uri_to_fname(result))
end, bufnr) end, bufnr)
else else
print "method textDocument/switchSourceHeader is not supported by any servers active on the current buffer" print "method textDocument/switchSourceHeader is not supported by any servers active on the current buffer"