Warning
This is a personal plugin under active development. Features may change without notice.
Neovim plugin that provides Telescope pickers for top-level Elm definitions. It filters LSP document and workspace symbols to only show symbols starting at column 1, giving you a clean overview of your Elm module's public API.
- Neovim >= 0.9
- telescope.nvim
- elm-language-server (must be configured separately)
Using lazy.nvim:
{
"teppix/elm-toolbox.nvim",
dependencies = { "nvim-telescope/telescope.nvim" },
opts = {},
}The plugin does not set any keymaps. Example using lazy.nvim:
{
"teppix/elm-toolbox.nvim",
dependencies = { "nvim-telescope/telescope.nvim" },
opts = {},
keys = {
{ "gO", function() require("elm-toolbox").document_symbols() end, desc = "Elm document symbols" },
{ "gW", function() require("elm-toolbox").workspace_symbols() end, desc = "Elm workspace symbols" },
},
}The plugin registers as a Telescope extension:
:Telescope elm_toolbox document_symbols
:Telescope elm_toolbox workspace_symbols