Files
vim/lua/custom/plugins/js.lua
2023-09-13 08:24:10 +02:00

14 lines
489 B
Lua

return {
'axelvc/template-string.nvim',
opts = {
filetypes = { 'html', 'typescript', 'javascript', 'typescriptreact', 'javascriptreact' }, -- filetypes where the plugin is active
jsx_brackets = true, -- must add brackets to JSX attributes
remove_template_string = false, -- remove backticks when there are no template strings
restore_quotes = {
-- quotes used when "remove_template_string" option is enabled
normal = [[']],
jsx = [["]],
},
},
}