another day
This commit is contained in:
parent
feb59d91c5
commit
1bbc50e3a9
27 changed files with 419 additions and 246 deletions
17
init.lua
17
init.lua
|
|
@ -81,7 +81,7 @@ vim.opt.smartcase = true
|
|||
vim.opt.signcolumn = 'yes'
|
||||
|
||||
-- Decrease update time
|
||||
vim.opt.updatetime = 125
|
||||
vim.opt.updatetime = 250
|
||||
|
||||
-- Decrease mapped sequence wait time
|
||||
-- Displays which-key popup sooner
|
||||
|
|
@ -113,11 +113,14 @@ vim.opt.scrolloff = 10
|
|||
vim.opt.hlsearch = true
|
||||
vim.keymap.set('n', '<Esc>', '<cmd>nohlsearch<CR>')
|
||||
|
||||
-- Diagnostic keymaps
|
||||
vim.keymap.set('n', '[d', vim.diagnostic.goto_prev, { desc = 'Go to previous [D]iagnostic message' })
|
||||
vim.keymap.set('n', ']d', vim.diagnostic.goto_next, { desc = 'Go to next [D]iagnostic message' })
|
||||
vim.keymap.set('n', '<leader>e', vim.diagnostic.open_float, { desc = 'Show diagnostic [E]rror messages' })
|
||||
vim.keymap.set('n', '<leader>q', vim.diagnostic.setloclist, { desc = 'Open diagnostic [Q]uickfix list' })
|
||||
-- Add padding to Neovide only
|
||||
if vim.g.neovide then
|
||||
vim.g.neovide_padding_top = 4
|
||||
vim.g.neovide_padding_bottom = 6
|
||||
vim.g.neovide_padding_right = 12
|
||||
vim.g.neovide_padding_left = 12
|
||||
end
|
||||
|
||||
-- Exit terminal mode in the builtin terminal with a shortcut that is a bit easier
|
||||
-- for people to discover. Otherwise, you normally need to press <C-\><C-n>, which
|
||||
-- is not what someone will guess without a bit more experience.
|
||||
|
|
@ -191,7 +194,7 @@ local opts = {
|
|||
},
|
||||
}
|
||||
|
||||
require 'autocommand'
|
||||
require 'commands'
|
||||
require 'fancyutil'
|
||||
require('lazy').setup('plugins', opts)
|
||||
-- The line beneath this is called `modeline`. See `:help modeline`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue