|
|
|
@ -373,6 +373,15 @@ vim.keymap.set('n', ']d', vim.diagnostic.goto_next, { desc = "Go to next diagnos
|
|
|
|
|
vim.keymap.set('n', '<leader>e', vim.diagnostic.open_float, { desc = "Open floating diagnostic message" })
|
|
|
|
|
vim.keymap.set('n', '<leader>q', vim.diagnostic.setloclist, { desc = "Open diagnostics list" })
|
|
|
|
|
|
|
|
|
|
-- Making cursor at the middle
|
|
|
|
|
vim.keymap.set('n', '<C-d>', '<C-d>zz')
|
|
|
|
|
vim.keymap.set('n', '<C-u>', '<C-u>zz')
|
|
|
|
|
vim.keymap.set('n', 'n', 'nzzzv')
|
|
|
|
|
vim.keymap.set('n', 'N', 'Nzzzv')
|
|
|
|
|
|
|
|
|
|
-- Real paste
|
|
|
|
|
vim.keymap.set('x', '<leader>p', '"_dP')
|
|
|
|
|
|
|
|
|
|
-- LSP settings.
|
|
|
|
|
-- This function gets run when an LSP connects to a particular buffer.
|
|
|
|
|
local on_attach = function(_, bufnr)
|
|
|
|
|