Shows imports in python #216
-
When I am on an empty or comment line in Python, it just shows all of the import statement. Is there a workaround for this or this is expected? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Can you share a screenshot? |
Beta Was this translation helpful? Give feedback.
-
This is what it looks like. I am using basedpyright |
Beta Was this translation helpful? Give feedback.
-
It's the tree-sitter 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() |
Beta Was this translation helpful? Give feedback.
It's the tree-sitter
module
node that expands through the whole document, you can also see from:InspectTree
. To disable it, remove it fromvalid_types
: