forgot a fuction

This commit is contained in:
jaydamani 2021-03-31 17:43:17 +05:30
parent 7906e1ce0a
commit 3240482191
1 changed files with 10 additions and 0 deletions

View File

@ -34,6 +34,16 @@ local t = function(str)
return vim.api.nvim_replace_termcodes(str, true, true, true)
end
local check_back_space = function()
local col = vim.fn.col('.') - 1
if col == 0 or vim.fn.getline('.'):sub(col, col):match('%s') then
return true
else
return false
end
end
_G.tab_complete = function()
if vim.fn.pumvisible() == 1 then
return t "<C-n>"