From 3de0832e8dcd97e55db1d60912744a7ba80e9a6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jona=20L=C3=B6ffler?= <> Date: Tue, 23 Apr 2024 13:21:03 +0200 Subject: [PATCH] Transfer more configuration --- init.lua | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/init.lua b/init.lua index 2ace212d..5c64a5de 100644 --- a/init.lua +++ b/init.lua @@ -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', 'e', vim.diagnostic.open_float, { desc = 'Show diagnostic [E]rror messages' }) vim.keymap.set('n', 'q', vim.diagnostic.setloclist, { desc = 'Open diagnostic [Q]uickfix list' }) +vim.keymap.set('n', 'co', ':copen') +vim.keymap.set('n', 'cc', ':cclose') +vim.keymap.set('n', '', ':cnext') +vim.keymap.set('n', '', ':cprev') + +vim.keymap.set('n', 'qo', ':lopen') +vim.keymap.set('n', 'qq', ':lclose') +vim.keymap.set('n', '', ':lnext') +vim.keymap.set('n', '', ':lprev') + -- 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 , which -- is not what someone will guess without a bit more experience.