Add spelling completion shortcut

This commit is contained in:
ViViDboarder 2021-09-09 16:05:45 -07:00
parent b194e639fd
commit 4097ef493c
1 changed files with 5 additions and 0 deletions

View File

@ -54,3 +54,8 @@ _G.complete_space = function()
end
end
map("i", "<C-Space>", "v:lua.complete_space()", {expr = true})
-- Easily toggle spelling
vim.cmd "command Spell setlocal spell! spelllang=en_us"
-- Pop spelling completion for word under cursor
map("n", "<leader>s", "viw<esc>a<c-x>s", {})