Closed boltlessengineer closed 3 months ago
minor fix for when auto_install is set to false
auto_install
false
https://github.com/nvim-neorocks/rocks-treesitter.nvim/blob/34b33694a5b8f47aded92947ba8bbcce9a4e3b7e/lua/rocks_treesitter/config.lua#L42
When opts.auto_install is set to false, config.auto_install becomes ”prompt” because of how lua ternary works.^1 true and false or “prompt” in lua is ”prompt”
opts.auto_install
config.auto_install
”prompt”
true and false or “prompt”
Just swapping the condition should work but lua-language-server doesn’t seem to like it.
minor fix for when
auto_install
is set tofalse
https://github.com/nvim-neorocks/rocks-treesitter.nvim/blob/34b33694a5b8f47aded92947ba8bbcce9a4e3b7e/lua/rocks_treesitter/config.lua#L42
When
opts.auto_install
is set tofalse
,config.auto_install
becomes”prompt”
because of how lua ternary works.^1true and false or “prompt”
in lua is”prompt”