From 4097ef493cbdb0983a1f00b79591daa2210bd104 Mon Sep 17 00:00:00 2001 From: ViViDboarder Date: Thu, 9 Sep 2021 16:05:45 -0700 Subject: [PATCH] Add spelling completion shortcut --- neovim/lua/_bindings.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/neovim/lua/_bindings.lua b/neovim/lua/_bindings.lua index a7a7532..3fb8d67 100644 --- a/neovim/lua/_bindings.lua +++ b/neovim/lua/_bindings.lua @@ -54,3 +54,8 @@ _G.complete_space = function() end end map("i", "", "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", "s", "viwas", {})