diff options
| author | Thomas Vigouroux <39092278+vigoux@users.noreply.github.com> | 2020-06-19 15:45:28 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-06-19 15:45:28 +0200 |
| commit | 516671fe9f9de98d27024e22c014adc535b56dc7 (patch) | |
| tree | fb9e1984ed56efeedb05e9adbf5041d2ce390516 /lua/nvim-treesitter/install.lua | |
| parent | 772aa4c169969e56fd3f1208d1d6b42cd799b74a (diff) | |
| parent | cf72524b2f7e3868ea74037004913af6f935f126 (diff) | |
Merge pull request #89 from kyazdani42/refacto/remove-buf-state-and-api
refacto: remove buf state and api
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 |
