Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

<Tab> key #143

Open
aloispichler opened this issue Dec 24, 2022 · 1 comment
Open

<Tab> key #143

aloispichler opened this issue Dec 24, 2022 · 1 comment

Comments

@aloispichler
Copy link

Hello again!

In your LaTeX example in read.me, it would be nice if
call lexima#add_rule({'char': '<Tab>', 'at': '\%#\$', 'leave': 1, 'filetype': 'latex'})
were working as well. This would be consistent behavior with UltiSnips.

Thank you!

@cohama
Copy link
Owner

cohama commented Dec 26, 2022

Thanks.

Key conflicts are frequently asked problem in lexima.vim.
In general, resolving conflicts by the following.

" conflicting plugin's initialization processes should be done before this line
let g:lexima_no_default_rules = 1
call lexima#set_default_rules()

inoremap <Tab> <Plug>(awesome-plugin-action)<C-r>=lexima#expand('<Tab>', 'i')<CR>

You need to replace <Plug>(awesome-plugin-action) to UltiSnips's <Tab> feature.
If you don't know about it, please report an output of imap <Tab>.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants