Skip to content

Commit 3d19180

Browse files
fix(config): handle when auto_install is false (#24)
1 parent 34b3369 commit 3d19180

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/rocks_treesitter/config.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ config.auto_highlight = opts.auto_highlight == "all" and "all"
3939
acc[lang] = true
4040
return acc
4141
end)
42-
config.auto_install = opts.auto_install ~= nil and opts.auto_install or config.auto_install
42+
config.auto_install = vim.F.if_nil(opts.auto_install, config.auto_install)
4343
config.parser_map = vim.tbl_extend("force", config.parser_map, opts.parser_map or {})
4444

4545
return config

0 commit comments

Comments
 (0)