mirror of
https://github.com/tomru/vim.git
synced 2026-03-03 06:27:18 +01:00
automatic template expansion in js
This commit is contained in:
13
lua/custom/plugins/js.lua
Normal file
13
lua/custom/plugins/js.lua
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
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 = [["]],
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user