Hey there,
How can I attribute these values to global variables in a Lua pattern?
" make emmet behave well with JSX in JS and TS files
let g:user_emmet_settings = {
\ 'javascript' : {
\ 'extends' : 'jsx',
\ },
\ 'typescript' : {
\ 'extends' : 'tsx',
\ },
\}
" https://github.com/mattn/emmet-vim#redefine-trigger-key
let g:user_emmet_leader_key='<tab>'
Solved.
-- Emmet
vim.g.user_emmet_leader_key = '<tab>'
vim.g.user_emmet_settings = {
javascript = {
extends = 'jsx'
},
typescript = {
extends = 'tsx'
}
}
1 Like
yutkat
3
Well, but I don’t change the Vimscript plugin settings to Lua.
It’s too much of a hassle to convert to Lua every time when a plugin’s settings change.
I think it is best to use vim.cmd
to convert the settings to Lua.
1 Like