Fix style error
This commit is contained in:
parent
3089f15df2
commit
546b80ee59
2
init.lua
2
init.lua
|
|
@ -927,7 +927,7 @@ require('lazy').setup({
|
|||
local language = vim.treesitter.language.get_lang(filetype)
|
||||
if not language then return end
|
||||
|
||||
local ok_installed, installed_parsers = pcall(function() return require('nvim-treesitter').get_installed('parsers') end)
|
||||
local ok_installed, installed_parsers = pcall(function() return require('nvim-treesitter').get_installed 'parsers' end)
|
||||
if not ok_installed then installed_parsers = {} end
|
||||
|
||||
if vim.tbl_contains(installed_parsers, language) then
|
||||
|
|
|
|||
Loading…
Reference in New Issue