diff options
| Commit | 274746893508fc6464fc4273f930ca4576002e3e (patch) | |
|---|---|---|
| Author | 2024-08-05 15:24:08 +0300 | |
| Committer | 2024-08-05 15:24:08 +0300 | |
| Files | f2078558debe407a58fda511431584cc534495b0 /lua/mappings.lua | |
| anderson-274746893508fc6464fc4273f930ca4576002e3e.tar anderson-274746893508fc6464fc4273f930ca4576002e3e.tar.gz anderson-274746893508fc6464fc4273f930ca4576002e3e.zip | ||
| Parent | e0fa240f9eb4268422a92972ef7b57ca7a73487b (diff) | |
feat(mappings): Added F6 spellcheck mode
1 files changed, 9 insertions, 0 deletions
| -rw-r--r-- | lua/mappings.lua | 9 |
diff --git a/lua/mappings.lua b/lua/mappings.lua index 12972f8..ed653f0 100644 --- a/lua/mappings.lua +++ b/lua/mappings.lua @@ -97,3 +97,12 @@ map.x.Alt_k(":m '<-2<CR>gv=gv") -- Special map.n.Pipe(":tabnew | ter lazygit<CR>") +map.n.F6(function() + if vim.g.colors_name == "gruvbox" then + vim.o.spell = true + vim.cmd("colorscheme darkblue") + else + vim.o.spell = false + vim.cmd("colorscheme gruvbox") + end +end) |
