feat: update nvim config
Some checks failed
Container build / container-build (push) Failing after 1m21s

This commit is contained in:
Job 2024-12-19 19:22:24 +01:00
parent 9d90ea60f2
commit 09af0db185
Signed by: Job79
SSH Key Fingerprint: SHA256:BezbKv3jZaqu7SdNrZM0e42b8nlNwh63zaVj/pUxc7U
4 changed files with 12 additions and 27 deletions

View File

@ -4,19 +4,13 @@ local delkeymap = vim.keymap.del
local opts = { noremap = true, silent = true } local opts = { noremap = true, silent = true }
-- Improved line start/end -- Improved line start/end
keymap("n", "H", "^", opts) keymap({ "n", "v" }, "H", "^", opts)
keymap("n", "L", "$", opts) keymap({ "n", "v" }, "L", "$", opts)
keymap("v", "H", "^", opts)
keymap("v", "L", "$", opts)
-- Improved escape -- Improved escape
keymap("n", "<ESC>", "<ESC>:noh<CR>", opts) keymap("n", "<ESC>", "<ESC>:noh<CR>", opts)
keymap("t", "<ESC><ESC>", "<C-\\><C-n>", opts) keymap("t", "<ESC><ESC>", "<C-\\><C-n>", opts)
-- Improved <ctrl> + movement
keymap("n", "<C-d>", "<C-d>zz", opts)
keymap("n", "<C-u>", "<C-u>zz", opts)
-- Disable alt j/k to move lines (conflict with default vim motions) -- Disable alt j/k to move lines (conflict with default vim motions)
delkeymap({ "i", "v" }, "<A-j>") delkeymap({ "i", "v" }, "<A-j>")
delkeymap({ "i", "v" }, "<A-k>") delkeymap({ "i", "v" }, "<A-k>")

View File

@ -5,6 +5,9 @@ local global = vim.g
-- Set target text width for gww to 60. -- Set target text width for gww to 60.
opt.tw = 60 opt.tw = 60
-- Use the internal clipboard.
opt.clipboard = ""
-- Use original gruvbox theme. -- Use original gruvbox theme.
global.gruvbox_material_foreground = "original" global.gruvbox_material_foreground = "original"

View File

@ -3,14 +3,9 @@ return {
{ {
-- Disable the dashboard. -- Disable the dashboard.
"folke/snacks.nvim", "folke/snacks.nvim",
opts = function(_, opts) opts = {
opts.dashboard = { enabled = false } dashboard = { enabled = false },
end, },
},
{
-- Disable the bufferline.
"bufferline.nvim",
enabled = false,
}, },
{ {
-- Disable inline hints by default. -- Disable inline hints by default.
@ -19,4 +14,8 @@ return {
inlay_hints = { enabled = false }, inlay_hints = { enabled = false },
}, },
}, },
-- Disable unused plugins.
{ "flash.nvim", enabled = false },
{ "bufferline.nvim", enabled = false },
} }

View File

@ -1,11 +0,0 @@
-- Configure lsp settings.
return {
{
"saghen/blink.cmp",
opts = {
keymap = {
preset = "default",
},
},
},
}