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:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user