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

refactor: use nvim_err_writeln for error msg

This commit is contained in:
jdhao
2022-09-07 23:35:18 +08:00
parent 91c9dbe40d
commit 67a322c26c
2 changed files with 6 additions and 4 deletions

View File

@@ -1,3 +1,4 @@
local api = vim.api
local keymap = vim.keymap
require('hlslens').setup({
@@ -12,7 +13,7 @@ local activate_hlslens = function(direction)
msg = msg:sub(13)
if not status then
vim.api.nvim_echo({{msg, "ErrorMsg"}}, false, {})
api.nvim_err_writeln(msg)
return
end
require('hlslens').start()