Skip to content

Shows imports in python #216

Answered by Bekaboo
Muizzyranking asked this question in Q&A
Discussion options

You must be logged in to vote

It's the tree-sitter module node that expands through the whole document, you can also see from :InspectTree. To disable it, remove it from valid_types:

local valid_types = require('dropbar.configs').opts.sources.treesitter.valid_types

for i, t in ipairs(valid_types) do
	if t == 'module' then
		table.remove(valid_types, i)
		break
	end
end

require('dropbar').setup()

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@Muizzyranking
Comment options

Answer selected by Muizzyranking
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants