refactor: Better messages

This commit is contained in:
hedy
2023-11-16 14:28:29 +08:00
parent 9f4cfa9417
commit 4d871ec64b
3 changed files with 23 additions and 8 deletions

View File

@@ -1,4 +1,4 @@
local vim = vim
local utils = require('outline.utils')
local M = {}
@@ -198,7 +198,7 @@ end
---Check for inconsistent or mutually exclusive opts. Does not alter the opts
function M.check_config()
if M.o.outline_window.hide_cursor and not M.o.outline_window.show_cursorline then
vim.notify("[outline.config]: hide_cursor enabled WITHOUT cursorline enabled!", vim.log.levels.ERROR)
utils.echo("config", "hide_cursor enabled without cursorline enabled!")
end
end