Use <C-h> and support cmdwin

This commit is contained in:
hrsh7th
2021-10-10 00:01:15 +09:00
parent 339fe9177b
commit 883eee5bbc
5 changed files with 15 additions and 8 deletions

View File

@@ -15,6 +15,12 @@ misc.concat = function(list1, list2)
return new_list
end
---Return is cmdwin or not.
---@return boolean
misc.is_cmdwin = function()
return vim.fn.getcmdwintype() ~= ''
end
---Get cursor before line
---@return string
misc.get_cursor_before_line = function()