mirror of
https://github.com/ViViDboarder/vim-settings.git
synced 2024-12-22 18:27:34 +00:00
Add spelling completion shortcut
This commit is contained in:
parent
b194e639fd
commit
4097ef493c
@ -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", {})
|
||||
|
Loading…
Reference in New Issue
Block a user