mirror of
https://github.com/ViViDboarder/vim-settings.git
synced 2024-11-18 01:26:26 +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
|
||||||
end
|
end
|
||||||
map("i", "<C-Space>", "v:lua.complete_space()", {expr = true})
|
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