diff --git a/lua/plugins.lua b/lua/plugins.lua index 532136b..2b4fae9 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -178,13 +178,23 @@ return { desc = 'All Keymaps', }, }, + lazy = false, config = function(_, opts) - local wk = require('which-key') + local wk = require("which-key") wk.setup(opts) wk.add({ - { 'x', group = 'Trouble' } + { "x", group = "Trouble" }, }) - end + wk.add({ + { "f", group = "Format" }, + }) + wk.add({ "T", group = "Telescope" }) + wk.add({ "Tg", group = "git" }) + wk.add({ "Tf", group = "files" }) + wk.add({ + { "w", group = "LSP workspace" }, + }) + end, }, { 'nvim-lualine/lualine.nvim', diff --git a/lua/plugins/editing.lua b/lua/plugins/editing.lua index 2bfe1e9..fd69e28 100644 --- a/lua/plugins/editing.lua +++ b/lua/plugins/editing.lua @@ -33,13 +33,17 @@ return { }, { 'rgroli/other.nvim', - config = { + opts = { mappings = { 'angular' } }, + config = function(_, opts) + require('other-nvim').setup(opts) + end, keys = { { 's', 'Other', desc = 'Open other file' } - } + }, + cmd = { 'Other', 'OtherTabNew', 'OtherSplit', 'OtherVSplit' } } } diff --git a/lua/plugins/telescope.lua b/lua/plugins/telescope.lua index 701fb67..282c9e6 100644 --- a/lua/plugins/telescope.lua +++ b/lua/plugins/telescope.lua @@ -9,13 +9,9 @@ return { { 's', 'Telescope lsp_workspace_symbols', desc = 'workspace symbols' }, { 'S', 'Telescope lsp_document_symbols', desc = 'document symbols' }, }, - config = function (_, opts) - require 'telescope'.setup(opts) - local wk = require 'which-key' - wk.add({ 'T', group = 'Telescope' }) - wk.add({ 'Tg', group = 'git' }) - wk.add({ 'Tf', group = 'files' }) - end + config = function(_, opts) + require("telescope").setup(opts) + end, }, { 'stevearc/dressing.nvim',