From a623fed63460d6d810605ce1ce858a58a5b222f7 Mon Sep 17 00:00:00 2001 From: Sakamoto Date: Tue, 12 May 2026 18:31:15 -0500 Subject: init --- dot_config/nvim/lua/plugins/trash/tabout.luaa | 31 +++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 dot_config/nvim/lua/plugins/trash/tabout.luaa (limited to 'dot_config/nvim/lua/plugins/trash/tabout.luaa') diff --git a/dot_config/nvim/lua/plugins/trash/tabout.luaa b/dot_config/nvim/lua/plugins/trash/tabout.luaa new file mode 100644 index 0000000..cbc469a --- /dev/null +++ b/dot_config/nvim/lua/plugins/trash/tabout.luaa @@ -0,0 +1,31 @@ +return { + { + 'abecodes/tabout.nvim', + lazy = false, + config = function() + require('tabout').setup { + tabkey = '', -- key to trigger tabout, set to an empty string to disable + backwards_tabkey = '', -- key to trigger backwards tabout, set to an empty string to disable + act_as_tab = true, -- shift content if tab out is not possible + act_as_shift_tab = false, -- reverse shift content if tab out is not possible (if your keyboard/terminal supports ) + default_tab = '', -- shift default action (only at the beginning of a line, otherwise is used) + default_shift_tab = '', -- reverse shift default action, + enable_backwards = true, -- well ... + completion = false, -- if the tabkey is used in a completion pum + tabouts = { + { open = "'", close = "'" }, + { open = '"', close = '"' }, + { open = '`', close = '`' }, + { open = '(', close = ')' }, + { open = '[', close = ']' }, + { open = '{', close = '}' } + }, + ignore_beginning = true, --[[ if the cursor is at the beginning of a filled element it will rather tab out than shift the content ]] + exclude = {} -- tabout will ignore these filetypes + } + end, + opt = true, -- Set this to true if the plugin is optional + event = 'InsertCharPre', -- Set the event to 'InsertCharPre' for better compatibility + priority = 1000, + }, +} -- cgit v1.2.3