From 0a7097b4b4afa29a7646bd5c6c283405bc94f1c4 Mon Sep 17 00:00:00 2001 From: Aaron Bieber Date: Fri, 9 Jun 2023 07:23:57 -0600 Subject: [PATCH] configs/neovim: enable tagbar --- configs/neovim.lua | 14 ++++++++++++++ configs/neovim.nix | 2 ++ 2 files changed, 16 insertions(+) diff --git a/configs/neovim.lua b/configs/neovim.lua index adb1cd6..c61ad43 100644 --- a/configs/neovim.lua +++ b/configs/neovim.lua @@ -85,6 +85,7 @@ map('n', 'fm', ':Telescope manix', {}) map('n', 'mo', ':MindOpenMain', {}) map('n', 'mp', ':MindOpenProject', {}) map('n', 'ot', ':ObsidianToday', {}) +map('n', 'tb', ':TagbarToggle', {}) map('n', 'g', ':GitGutterToggle', { noremap = true }) map('n', '2', ':set list!', { noremap = true }) @@ -118,3 +119,16 @@ vim.api.nvim_create_autocmd('LspAttach', { end, opts) end, }) + +vim.g.tagbar_type_elm = { + kinds = { + 'f:function:0:0', + 'm:modules:0:0', + 'i:imports:1:0', + 't:types:1:0', + 'a:type aliases:0:0', + 'c:type constructors:0:0', + 'p:ports:0:0', + 's:functions:0:0' + } +} diff --git a/configs/neovim.nix b/configs/neovim.nix index bf69e42..5e0e330 100644 --- a/configs/neovim.nix +++ b/configs/neovim.nix @@ -122,6 +122,7 @@ let nvim-tree-lua nvim-treesitter.withAllGrammars rust-vim + tagbar telescope-fzf-native-nvim telescope-manix telescope-nvim @@ -147,6 +148,7 @@ let baseVimPackages ++ [ ]; in { environment.systemPackages = with pkgs; [ + ctags elmPackages.elm elmPackages.elm-format elmPackages.elm-language-server