feat(nvim): tidy old config; track lazy-lock.json

This commit is contained in:
2025-12-31 20:18:56 +08:00
parent ad2aca84f0
commit b3cd3fe209
4 changed files with 47 additions and 7 deletions

View File

@@ -63,7 +63,7 @@ function G.buf_kill(kill_command, bufnr, force)
else
return
end
elseif api.nvim_buf_get_option(bufnr, "buftype") == "terminal" then
elseif api.nvim_get_option_value("buftype", { buf = bufnr }) == "terminal" then
choice = fn.confirm(fmt([[Close "%s"?]], bufname), "&Yes\n&No\n&Cancel")
if choice == 1 then
force = true

View File

@@ -25,10 +25,6 @@ vim.diagnostic.config({
severity_sort = true,
})
vim.lsp.handlers["textDocument/hover"] = vim.lsp.with(vim.lsp.handlers.hover, {
border = "single",
})
local diag_config1 = {
virtual_text = {
severity = {