nvim-neorocks / rocks-treesitter.nvim

A "just works" tree-sitter setup for rocks.nvim!
GNU General Public License v3.0
36 stars 4 forks source link

fix(config): handle when `auto_install` is set to `false` #24

Closed boltlessengineer closed 3 months ago

boltlessengineer commented 3 months ago

minor fix for when auto_install is set to 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”

boltlessengineer commented 3 months ago

Just swapping the condition should work but lua-language-server doesn’t seem to like it.