diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2019-06-08 15:51:38 +0200 |
---|---|---|
committer | Björn Linse <bjorn.linse@gmail.com> | 2019-09-28 14:55:43 +0200 |
commit | afba23099fccc929fd0319a9a965a7b727407c7a (patch) | |
tree | fe850ec9202a4915a54b3df2e77388e8391a0a35 /runtime/lua/vim/tree_sitter.lua | |
parent | 1e9e2451bef21ff705e677802d1b0980356f1f86 (diff) | |
download | rneovim-afba23099fccc929fd0319a9a965a7b727407c7a.tar.gz rneovim-afba23099fccc929fd0319a9a965a7b727407c7a.tar.bz2 rneovim-afba23099fccc929fd0319a9a965a7b727407c7a.zip |
tree-sitter: support pre-registration of languages
Diffstat (limited to 'runtime/lua/vim/tree_sitter.lua')
-rw-r--r-- | runtime/lua/vim/tree_sitter.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/lua/vim/tree_sitter.lua b/runtime/lua/vim/tree_sitter.lua index bbc4db5f29..a7830bc312 100644 --- a/runtime/lua/vim/tree_sitter.lua +++ b/runtime/lua/vim/tree_sitter.lua @@ -38,7 +38,7 @@ local function create_parser(bufnr) end local ft = a.nvim_buf_get_option(bufnr, "filetype") local self = setmetatable({bufnr=bufnr, valid=false}, Parser) - self._parser = vim._create_ts_parser(ft.."_parser.so", ft) + self._parser = vim._create_ts_parser(ft) self:parse_tree() local function cb(ev, ...) -- TODO: use weakref to self, so that the parser is free'd is no plugin is |