Transfer more configuration

pull/890/head
Jona Löffler 1 month ago
parent 1097ac1fd5
commit 3de0832e8d

@ -127,6 +127,8 @@ vim.opt.smartcase = true
-- Keep signcolumn on by default
vim.opt.signcolumn = 'yes'
vim.opt.colorcolumn = '120'
vim.opt.textwidth = 120
-- Decrease update time
vim.opt.updatetime = 250
@ -137,7 +139,7 @@ vim.opt.timeoutlen = 300
-- Configure how new splits should be opened
vim.opt.splitright = true
vim.opt.splitbelow = true
vim.opt.splitbelow = false
-- Sets how neovim will display certain whitespace characters in the editor.
-- See `:help 'list'`
@ -153,6 +155,10 @@ vim.opt.cursorline = true
-- Minimal number of screen lines to keep above and below the cursor.
vim.opt.scrolloff = 10
vim.opt.wrap = false -- no line wraps
vim.opt.guifont = 'Fira Code:h12'
vim.opt.linespace = 5
-- [[ Basic Keymaps ]]
-- See `:help vim.keymap.set()`
@ -167,6 +173,16 @@ vim.keymap.set('n', ']d', vim.diagnostic.goto_next, { desc = 'Go to next [D]iagn
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' })
vim.keymap.set('n', '<leader>co', ':copen<CR>')
vim.keymap.set('n', '<leader>cc', ':cclose<CR>')
vim.keymap.set('n', '<C-j>', ':cnext<CR>')
vim.keymap.set('n', '<C-k>', ':cprev<CR>')
vim.keymap.set('n', '<leader>qo', ':lopen<CR>')
vim.keymap.set('n', '<leader>qq', ':lclose<CR>')
vim.keymap.set('n', '<C-n>', ':lnext<CR>')
vim.keymap.set('n', '<C-m>', ':lprev<CR>')
-- 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.

Loading…
Cancel
Save