feat: fix lazy loading issues

This commit is contained in:
Fey Naomi Schrewe 2024-09-12 10:04:35 +02:00
parent 33520be599
commit 82e5ecee41
3 changed files with 22 additions and 12 deletions

View File

@ -178,13 +178,23 @@ return {
desc = 'All Keymaps', desc = 'All Keymaps',
}, },
}, },
lazy = false,
config = function(_, opts) config = function(_, opts)
local wk = require('which-key') local wk = require("which-key")
wk.setup(opts) wk.setup(opts)
wk.add({ wk.add({
{ '<leader>x', group = 'Trouble' } { "<leader>x", group = "Trouble" },
}) })
end wk.add({
{ "<leader>f", group = "Format" },
})
wk.add({ "<leader>T", group = "Telescope" })
wk.add({ "<leader>Tg", group = "git" })
wk.add({ "<leader>Tf", group = "files" })
wk.add({
{ "<space>w", group = "LSP workspace" },
})
end,
}, },
{ {
'nvim-lualine/lualine.nvim', 'nvim-lualine/lualine.nvim',

View File

@ -33,13 +33,17 @@ return {
}, },
{ {
'rgroli/other.nvim', 'rgroli/other.nvim',
config = { opts = {
mappings = { mappings = {
'angular' 'angular'
} }
}, },
config = function(_, opts)
require('other-nvim').setup(opts)
end,
keys = { keys = {
{ '<leader>s', '<cmd>Other<CR>', desc = 'Open other file' } { '<leader>s', '<cmd>Other<CR>', desc = 'Open other file' }
} },
cmd = { 'Other', 'OtherTabNew', 'OtherSplit', 'OtherVSplit' }
} }
} }

View File

@ -9,13 +9,9 @@ return {
{ '<space>s', '<cmd>Telescope lsp_workspace_symbols<CR>', desc = 'workspace symbols' }, { '<space>s', '<cmd>Telescope lsp_workspace_symbols<CR>', desc = 'workspace symbols' },
{ '<space>S', '<cmd>Telescope lsp_document_symbols<CR>', desc = 'document symbols' }, { '<space>S', '<cmd>Telescope lsp_document_symbols<CR>', desc = 'document symbols' },
}, },
config = function (_, opts) config = function(_, opts)
require 'telescope'.setup(opts) require("telescope").setup(opts)
local wk = require 'which-key' end,
wk.add({ '<leader>T', group = 'Telescope' })
wk.add({ '<leader>Tg', group = 'git' })
wk.add({ '<leader>Tf', group = 'files' })
end
}, },
{ {
'stevearc/dressing.nvim', 'stevearc/dressing.nvim',