1
0
mirror of https://github.com/jdhao/nvim-config.git synced 2025-06-08 14:14:33 +02:00

Nvim version bump (#385)

* update nvim version to 0.11.0

* replace deprecated nvim_err_write/nvim_err_writeln call

* replace deprecated func for diagnostic and lsp

* use vim.hl instead

* use new way to define diagnostic signs
This commit is contained in:
jdhao
2025-03-26 22:33:39 +01:00
committed by GitHub
parent 8cba1ba234
commit f005a8303d
9 changed files with 29 additions and 31 deletions

View File

@@ -50,7 +50,8 @@ vim.api.nvim_create_user_command("JSONFormat", function(context)
local cmd_str = string.format("%s,%s!python -m json.tool", line1, line2)
vim.fn.execute(cmd_str)
else
vim.api.nvim_err_write(string.format("unsupported range: %s", range))
local msg = string.format("unsupported range: %s", range)
vim.api.nvim_echo({ { msg } }, true, { err = true })
end
end, {
desc = "Format JSON string",