Skip to content

Commit b7445b3

Browse files
authored
Add treesitter integration (#280)
* feat: add treesitter integration * feat: add treesitter integration * chore: lint code * chore: bump dependencies * chore: bump dependencies * chore: lint code * chore: update lua call
1 parent 02a8e79 commit b7445b3

File tree

23 files changed

+77
-44
lines changed

23 files changed

+77
-44
lines changed

.editorconfig

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
root = true
2+
3+
[*]
4+
indent_style = space
5+
indent_size = 2
6+
end_of_line = lf
7+
charset = utf-8
8+
trim_trailing_whitespace = true
9+
insert_final_newline = true
10+
max_line_length = off
11+
12+
[*.{yaml,yml}]
13+
indent_size = 2

.github/workflows/linux_neovim.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,3 @@ jobs:
4646
themis ./spec
4747
export VIRTUALEDIT=1
4848
themis ./spec
49-

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ The snippet format was described in [here](https://code.visualstudio.com/docs/ed
120120

121121
# Recipe
122122

123-
### $TM_FILENAME_BASE
123+
### $TM\_FILENAME\_BASE
124124

125125
You can insert the filename via `fname\<Plug>(vsnip-expand)`.
126126

@@ -133,7 +133,7 @@ You can insert the filename via `fname\<Plug>(vsnip-expand)`.
133133
}
134134
```
135135

136-
### Log $TM_SELECTED_TEXT
136+
### Log $TM\_SELECTED\_TEXT
137137

138138
You can fill `$TM_SELECTED_TEXT` by `<Plug>(vsnip-select-text)` or `<Plug>(vsnip-cut-text)`.
139139

@@ -197,4 +197,3 @@ You can run `npm run test` after install [vim-themis](https://github.com/thinca/
197197
1. compute the `user-diff` ... `s:Session.flush_changes`
198198
2. reflect the `user-diff` to snippet ast ... `s:Snippet.follow`
199199
3. reflect the `sync-diff` to buffer content ... `s:Snippet.sync & s:Session.flush_changes`
200-

autoload/vital/_vsnip/VS/LSP/Diff.vim

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,4 +161,3 @@ if has('nvim')
161161
catch /.*/
162162
endtry
163163
endif
164-

autoload/vital/_vsnip/VS/LSP/Position.vim

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,4 +59,3 @@ function! s:_get_buffer_line(expr, lnum) abort
5959
endif
6060
return v:null
6161
endfunction
62-

autoload/vital/_vsnip/VS/LSP/Text.vim

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,3 @@ endfunction
2020
function! s:split_by_eol(text) abort
2121
return split(a:text, "\r\n\\|\r\\|\n", v:true)
2222
endfunction
23-

autoload/vital/_vsnip/VS/LSP/TextEdit.vim

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,4 +182,3 @@ function! s:_switch(path) abort
182182
endif
183183
return bufnr('%')
184184
endfunction
185-

autoload/vital/_vsnip/VS/Vim/Buffer.vim

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,4 +137,3 @@ function! s:pseudo(filepath) abort
137137
augroup END
138138
return l:bufnr
139139
endfunction
140-

autoload/vital/_vsnip/VS/Vim/Option.vim

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,3 @@ function! s:define(map) abort
1818
endfor
1919
return { -> s:define(l:old) }
2020
endfunction
21-

autoload/vsnip/indent.vim

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,4 +58,3 @@ function! vsnip#indent#trim_base_indent(text) abort
5858
endfor
5959
return substitute(l:text, "\\%(^\\|\n\\)\\zs\\V" . l:base_indent, '', 'g')
6060
endfunction
61-

0 commit comments

Comments
 (0)