diff options
| author | jdhao <jdhao@hotmail.com> | 2022-09-07 23:36:49 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-09-07 23:36:49 +0800 |
| commit | 954a4a1cad62c2c3e3a25c8c78723ff5b0d5a60a (patch) | |
| tree | 9dfbb180681296f8b6366bdd916db7ad46a4377e /lua | |
| parent | 91c9dbe40d51a8a04c2aaf455c70d4f9e17267ec (diff) | |
| parent | 67a322c26cd82534c8f9536fd788f579559a91c8 (diff) | |
Merge pull request #95 from jdhao/error-msg
refactor: use nvim_err_writeln for error msg
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/config/hlslens.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lua/config/hlslens.lua b/lua/config/hlslens.lua index 5b2199d..59ce9a3 100644 --- a/lua/config/hlslens.lua +++ b/lua/config/hlslens.lua @@ -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() |
