From b1b7cba696cf2ff69b837cb777d779b1bd0b840c Mon Sep 17 00:00:00 2001 From: "jakob.stendahl" Date: Wed, 13 Dec 2023 09:57:47 +0100 Subject: Change to Mason --- Common/nvim/lua/helper_functions.lua | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'Common/nvim/lua/helper_functions.lua') 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', 'jq', FormatJson, { noremap = true, silent = true }) vim.keymap.set('v', 'jq', ':FormatJson', { 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 [[ -- cgit v1.2.3