Skip to content

vim.api.nvim_set_keymap('i', '<Tab>', 'v:lua.smart_tab()', {expr = true, noremap = true}) #110

Answered by nshen
HUAHUAI23 asked this question in Q&A
Discussion options

You must be logged in to vote

我也不是很清楚,应该是表示参数 'v:lua.smart_tab()' 是表达式吧

:h map-expression

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@HUAHUAI23
Comment options

Answer selected by nshen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants