Check configuration

This commit is contained in:
hrsh7th
2021-09-03 21:29:53 +09:00
parent 62a6a6c063
commit 675a72e2e8

View File

@@ -35,6 +35,11 @@ core.menu = menu.new({
---@param e cmp.Entry
core.ghost_text = function(e)
vim.api.nvim_buf_clear_namespace(0, core.GHOST_TEXT_NS, 0, -1)
if not config.get().experimental.ghost_text then
return
end
if not e then
return
end