Skip to content

Commit

Permalink
fix: scope logic with unknown language
Browse files Browse the repository at this point in the history
If the language is not listed in the languages "officially" supported by
ibl, `scope[lang]` is `nil`.
  • Loading branch information
guibou authored and lukas-reineke committed Oct 4, 2024
1 parent 2e57e1b commit 3af6493
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/ibl/scope.lua
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ M.get = function(bufnr, config)
local type = node:type()

if
(scope_lang[lang][type] and not utils.tbl_contains(excluded_node_types, type))
((scope_lang[lang] and scope_lang[lang][type]) and not utils.tbl_contains(excluded_node_types, type))
or utils.tbl_contains(include_node_types, type)
or utils.tbl_contains(include_node_types, "*")
then
Expand Down

0 comments on commit 3af6493

Please sign in to comment.