diff options
| author | kiyan42 <yazdani.kiyan@protonmail.com> | 2020-06-19 13:45:33 +0200 |
|---|---|---|
| committer | kiyan42 <yazdani.kiyan@protonmail.com> | 2020-06-19 13:45:33 +0200 |
| commit | 38af29a912a607d3d703f57b840bfc61671679cc (patch) | |
| tree | 28c4fca6a638b28c923088e240dce064211cb349 /lua/nvim-treesitter/install.lua | |
| parent | 772aa4c169969e56fd3f1208d1d6b42cd799b74a (diff) | |
refacto: remove buf_state
- remove buf_state and related code
- add get_node_at_cursor()
- better incremental selection (code is localized)
Diffstat (limited to 'lua/nvim-treesitter/install.lua')
| -rw-r--r-- | lua/nvim-treesitter/install.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lua/nvim-treesitter/install.lua b/lua/nvim-treesitter/install.lua index 637f1ded..381afaa4 100644 --- a/lua/nvim-treesitter/install.lua +++ b/lua/nvim-treesitter/install.lua @@ -4,6 +4,7 @@ local luv = vim.loop local configs = require'nvim-treesitter.configs' local utils = require'nvim-treesitter.utils' +local parsers = require'nvim-treesitter.parsers' local M = {} @@ -128,7 +129,7 @@ M.ensure_installed = function(languages) end for _, ft in ipairs(languages) do - if not utils.has_parser(ft) then + if not parsers.has_parser(ft) then install(ft) end end |
