diff options
author | jakob.stendahl <jakob.stendahl@infomedia.dk> | 2024-01-25 21:01:10 +0100 |
---|---|---|
committer | jakob.stendahl <jakob.stendahl@infomedia.dk> | 2024-01-25 21:01:10 +0100 |
commit | d87f599f413d6dc17a15188a62106caa868dc68d (patch) | |
tree | 0d86e2fc9324bcdfa1ca0ef6ab1a4f8e84a04a09 /Common/nvim/lua/helper_functions.lua | |
parent | 2a260e88abbc8012aee7dc6c6c3c69c87ec59b60 (diff) | |
download | dotfiles-d87f599f413d6dc17a15188a62106caa868dc68d.tar.gz dotfiles-d87f599f413d6dc17a15188a62106caa868dc68d.zip |
things
Diffstat (limited to 'Common/nvim/lua/helper_functions.lua')
-rwxr-xr-x | Common/nvim/lua/helper_functions.lua | 10 |
1 files changed, 10 insertions, 0 deletions
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', '<leader><tab>', 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 [[ |