added minifiles keymap, resolved keymap conflict

This commit is contained in:
Baipyrus 2024-05-02 13:25:23 +02:00
parent bc4cd2a521
commit 5fd11168cd
3 changed files with 7 additions and 2 deletions

View File

@ -4,12 +4,12 @@ return {
lazy = false, lazy = false,
keys = { keys = {
{ {
'<leader>f', '<leader>fb',
function() function()
require('conform').format { async = true, lsp_fallback = true } require('conform').format { async = true, lsp_fallback = true }
end, end,
mode = '', mode = '',
desc = '[F]ormat buffer', desc = '[F]ormat [B]uffer',
}, },
}, },
opts = { opts = {

View File

@ -19,6 +19,9 @@ return {
-- Simple file explorer with in-buffer-editing -- Simple file explorer with in-buffer-editing
require('mini.files').setup() require('mini.files').setup()
vim.keymap.set({ 'n', 'v' }, '<leader>fe', function()
MiniFiles.open()
end, { desc = '[F]ile [E]xplorer' })
-- Simple and easy statusline. -- Simple and easy statusline.
-- You could remove this setup call if you don't like it, -- You could remove this setup call if you don't like it,

View File

@ -34,6 +34,7 @@ return {
['<leader>t'] = { name = '[T]oggle', _ = 'which_key_ignore' }, ['<leader>t'] = { name = '[T]oggle', _ = 'which_key_ignore' },
['<leader>dn'] = { name = '[N]o', _ = 'which_key_ignore' }, ['<leader>dn'] = { name = '[N]o', _ = 'which_key_ignore' },
['<leader>l'] = { name = '[L]ist', _ = 'which_key_ignore' }, ['<leader>l'] = { name = '[L]ist', _ = 'which_key_ignore' },
['<leader>f'] = { name = '[F]ormat/[F]ile', _ = 'which_key_ignore' },
} }
-- register which-key VISUAL mode -- register which-key VISUAL mode
@ -47,6 +48,7 @@ return {
['<leader>dn'] = { name = '[N]o', _ = 'which_key_ignore' }, ['<leader>dn'] = { name = '[N]o', _ = 'which_key_ignore' },
['<leader>pn'] = { name = '[N]o', _ = 'which_key_ignore' }, ['<leader>pn'] = { name = '[N]o', _ = 'which_key_ignore' },
['<leader>l'] = { name = '[L]ist', _ = 'which_key_ignore' }, ['<leader>l'] = { name = '[L]ist', _ = 'which_key_ignore' },
['<leader>f'] = { name = '[F]ormat/[F]ile', _ = 'which_key_ignore' },
}, { mode = 'v' }) }, { mode = 'v' })
end, end,
}, },