aboutsummaryrefslogtreecommitdiff
path: root/Common/nvim/lua/helper_functions.lua
diff options
context:
space:
mode:
authorjakob.stendahl <jakob.stendahl@infomedia.dk>2023-12-13 09:57:47 +0100
committerjakob.stendahl <jakob.stendahl@infomedia.dk>2023-12-13 09:58:53 +0100
commitb1b7cba696cf2ff69b837cb777d779b1bd0b840c (patch)
tree82a1ad6725aac0dbc3285fced5db684152c6fe6c /Common/nvim/lua/helper_functions.lua
parent1c65b72425b4376bbf899a9ed58dfe60dee0552c (diff)
downloaddotfiles-b1b7cba696cf2ff69b837cb777d779b1bd0b840c.tar.gz
dotfiles-b1b7cba696cf2ff69b837cb777d779b1bd0b840c.zip
Change to Mason
Diffstat (limited to 'Common/nvim/lua/helper_functions.lua')
-rwxr-xr-xCommon/nvim/lua/helper_functions.lua11
1 files changed, 11 insertions, 0 deletions
diff --git a/Common/nvim/lua/helper_functions.lua b/Common/nvim/lua/helper_functions.lua
index cd84fc9..515854f 100755
--- a/Common/nvim/lua/helper_functions.lua
+++ b/Common/nvim/lua/helper_functions.lua
@@ -66,6 +66,17 @@ end, {range = true, desc = 'Format JSON'})
vim.keymap.set('n', '<leader>jq', FormatJson, { noremap = true, silent = true })
vim.keymap.set('v', '<leader>jq', ':FormatJson<CR>', { noremap = true, silent = true })
+function English()
+ vim.opt.spell = true
+ vim.opt.spelllang = "en_us"
+end
+vim.api.nvim_create_user_command('English', English, {bang=false, desc='Enables spellchecking for english'})
+function Norsk()
+ vim.opt.spell = true
+ vim.opt.spelllang = "nb_no"
+end
+vim.api.nvim_create_user_command('Norsk', Norsk, {bang=false, desc='Enables spellchecking for norsk bokmål'})
+
-- Close buffer without closing window
--[[
vim.cmd [[