Fixed warning to actually goto warning, replaced g+key to <leader>+key

This commit is contained in:
Kyren223
2024-10-30 00:41:16 +02:00
parent da53593646
commit 8faced2c05
3 changed files with 16 additions and 5 deletions

View File

@@ -29,10 +29,10 @@ local keymaps = {
{ 'n', 'R', '<cmd>Lspsaga rename<cr>', { desc = '[R]ename' } },
{ { 'n', 'i' }, '<M-Enter>', '<cmd>Lspsaga code_action<cr>', { desc = 'Code Actions' } },
{ 'n', '<leader>ca', '<cmd>Lspsaga code_action<cr><Esc>', { desc = '[C]ode [A]ctions' } },
{ 'n', 'ge', next_diagnostic(severity.ERROR), { desc = '[G]oto [E]rror' } },
{ 'n', 'gE', prev_diagnostic(severity.ERROR), { desc = '[G]oto [E]rror (prev)' } },
{ 'n', 'gw', next_diagnostic(severity.ERROR), { desc = '[G]oto [W]arning' } },
{ 'n', 'gW', prev_diagnostic(severity.ERROR), { desc = '[G]oto [W]arning (prev)' } },
{ 'n', '<leader>e', next_diagnostic(severity.ERROR), { desc = 'Goto [E]rror' } },
{ 'n', '<leader>E', prev_diagnostic(severity.ERROR), { desc = 'Goto [E]rror (prev)' } },
{ 'n', '<leader>w', next_diagnostic(severity.WARN), { desc = 'Goto [W]arning' } },
{ 'n', '<leader>W', prev_diagnostic(severity.WARN), { desc = 'Goto [W]arning (prev)' } },
{ 'n', '<leader>D', cursor_diagnostics, { desc = '[D]iagnostics under cursor' } },
}

View File

@@ -3,10 +3,11 @@ return {
dependencies = { 'nvim-lua/plenary.nvim' },
keys = {
{
'<leader>e',
'<leader>bl',
function()
require('buffer_manager.ui').toggle_quick_menu()
end,
desc = '[B]uffer [L]ist',
},
},
}

10
scripts/push.sh Normal file
View File

@@ -0,0 +1,10 @@
#!/bin/zsh
# https://drive.proton.me/urls/DS2CFQYQHR#5aibRkZNmELZ
# https://drive.proton.me/urls/1R0E5Z633W#reuxfaCJfM5n same as proton
# Automatic commits
git fetch --all
git add .
timestamp=$(date +%s)
git commit -m "$timestamp"
git push origin master