From d87f599f413d6dc17a15188a62106caa868dc68d Mon Sep 17 00:00:00 2001 From: "jakob.stendahl" Date: Thu, 25 Jan 2024 21:01:10 +0100 Subject: things --- Common/nvim/lua/helper_functions.lua | 10 ++++++++++ 1 file changed, 10 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 1f57a09..027e823 100755 --- a/Common/nvim/lua/helper_functions.lua +++ b/Common/nvim/lua/helper_functions.lua @@ -21,6 +21,7 @@ function ToggleListChars() vim.opt.list = list_chars_enabled vim.opt.listchars = list_chars_enabled and list_chars_when_enabled or 'eol:$' end +vim.keymap.set('n', '', ToggleListChars, silentnoremap) -- Command to join lines in buffer as list function JoinLines(args, quotes) @@ -78,6 +79,15 @@ function Norsk() end vim.api.nvim_create_user_command('Norsk', Norsk, {bang=false, desc='Enables spellchecking for norsk bokmål'}) +-- enable filetype and such +function auto() + vim.cmd [[ + filetype plugin on + filetype indent on + ]] +end +vim.api.nvim_create_user_command('A', auto, {bang=false, desc='Enable filetype plugin and indent'}) + -- Close buffer without closing window --[[ vim.cmd [[ -- cgit v1.2.3