Skip to content

Commit 1cf359e

Browse files
authored
Merge pull request #34 from hmajid2301/add-templ
feat: add templ
2 parents 7af8f9e + e24ee72 commit 1cf359e

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

plugin/inline_edit.vim

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,22 @@ call add(g:inline_edit_patterns, {
161161
\ 'end': '"""',
162162
\ })
163163

164+
call add(g:inline_edit_patterns, {
165+
\ 'main_filetype': 'templ',
166+
\ 'sub_filetype': 'javascript',
167+
\ 'indent_adjustment': 1,
168+
\ 'start': '<script\>[^>]*>',
169+
\ 'end': '</script>',
170+
\ })
171+
172+
call add(g:inline_edit_patterns, {
173+
\ 'main_filetype': 'templ',
174+
\ 'sub_filetype': 'typescript',
175+
\ 'indent_adjustment': 1,
176+
\ 'start': '<script[^>]*lang=["'']ts["''][^>]*>',
177+
\ 'end': '</script>',
178+
\ })
179+
164180
command! -range=0 -nargs=* -complete=filetype
165181
\ InlineEdit call s:InlineEdit(<count>, <q-args>)
166182

0 commit comments

Comments
 (0)