-
-
Notifications
You must be signed in to change notification settings - Fork 7
Imenu
verilog-ext-mode
sets the Imenu index creation function to verilog-ext-imenu-index
:
(setq-local imenu-create-index-function #'verilog-ext-imenu-index)
This function is able to differentiate between RTL and class-based environments (see variable verilog-ext-file-allows-instances
). For RTL environments it will find instances and functions/tasks. For class-based environments it will find classes and internal/external methods.
The enhanced Imenu index extracted by verilog-ext
can be used by any completion framework, such as counsel-imenu
, consult-imenu
or helm-imenu
.
imenu-list
is a recommended package to visualize some level of nesting in verification environments (e.g. methods within classes).
verilog-ts-mode
ignores the imenu
function provided by verilog-ext
and uses its own.
For large files it could take a long time for verilog-ext
to parse
it completely and find instances, resulting in long load times.
verilog-ts-mode
solves this issue since parsing is much faster and efficient.