-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtabou.lua
21 lines (20 loc) · 895 Bytes
/
tabou.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
lua << EOF
require('tabout').setup {
tabkey = '<Tab>', -- key to trigger tabout
backwards_tabkey = '<S-Tab>', -- 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 <S-Tab>)
enable_backwards = true, -- well ...
act_as_tab = true, -- shift content if tab out is not possible
completion = true, -- 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 ]]
}
EOF