small fix
This commit is contained in:
parent
114a1d8d13
commit
9ebe29ff69
8 changed files with 34 additions and 15 deletions
|
|
@ -25,12 +25,12 @@ map('n', '<C-Up>', '<C-w><C-k>', { desc = 'Move focus to the upper window' })
|
|||
|
||||
-- Double Q to close current window
|
||||
--map('n', 'qq', '<CMD>q<CR>', { silent = true, desc = 'CLose window' })
|
||||
-- vim.api.nvim_create_autocmd('FileType', {
|
||||
-- pattern = 'TelescopePrompt',
|
||||
-- callback = function(params)
|
||||
-- vim.keymap.set('', 'qq', '<Esc>', { noremap = true, buffer = params.buf })
|
||||
-- end,
|
||||
-- })
|
||||
vim.api.nvim_create_autocmd('FileType', {
|
||||
pattern = 'TelescopePrompt',
|
||||
callback = function(params)
|
||||
vim.keymap.set('', 'qq', '<Esc>', { noremap = true, buffer = params.buf })
|
||||
end,
|
||||
})
|
||||
|
||||
-- Keep cursor centered when PgUp & PgDown
|
||||
map('n', '<PgDown>', '<C-d><C-d>', { desc = 'Page down' })
|
||||
|
|
@ -72,7 +72,7 @@ vim.api.nvim_create_autocmd('LspAttach', {
|
|||
|
||||
local function map(mode, l, r, opts)
|
||||
opts = opts or {}
|
||||
opts.buffer = bufnr
|
||||
opts.buffer = event.bufnr
|
||||
vim.keymap.set(mode, l, r, opts)
|
||||
end
|
||||
|
||||
|
|
|
|||
11
lua/config/options.lua
Normal file
11
lua/config/options.lua
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
|
||||
vim.diagnostic.config {
|
||||
update_in_insert = true,
|
||||
float = {
|
||||
focusable = false,
|
||||
},
|
||||
signs = true,
|
||||
underline = true,
|
||||
virtual_text = false,
|
||||
severity_sort = true,
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue