From 09af0db18508d757b7370a1bff00b99a46140e93 Mon Sep 17 00:00:00 2001 From: Job79 Date: Thu, 19 Dec 2024 19:22:24 +0100 Subject: [PATCH] feat: update nvim config --- config/nvim/config/keymaps.lua | 10 ++-------- config/nvim/config/options.lua | 3 +++ config/nvim/plugins/disabled.lua | 15 +++++++-------- config/nvim/plugins/lsp.lua | 11 ----------- 4 files changed, 12 insertions(+), 27 deletions(-) delete mode 100644 config/nvim/plugins/lsp.lua diff --git a/config/nvim/config/keymaps.lua b/config/nvim/config/keymaps.lua index 52acde9..eb43eda 100644 --- a/config/nvim/config/keymaps.lua +++ b/config/nvim/config/keymaps.lua @@ -4,19 +4,13 @@ local delkeymap = vim.keymap.del local opts = { noremap = true, silent = true } -- Improved line start/end -keymap("n", "H", "^", opts) -keymap("n", "L", "$", opts) -keymap("v", "H", "^", opts) -keymap("v", "L", "$", opts) +keymap({ "n", "v" }, "H", "^", opts) +keymap({ "n", "v" }, "L", "$", opts) -- Improved escape keymap("n", "", ":noh", opts) keymap("t", "", "", opts) --- Improved + movement -keymap("n", "", "zz", opts) -keymap("n", "", "zz", opts) - -- Disable alt j/k to move lines (conflict with default vim motions) delkeymap({ "i", "v" }, "") delkeymap({ "i", "v" }, "") diff --git a/config/nvim/config/options.lua b/config/nvim/config/options.lua index 4d2920f..5236ecd 100644 --- a/config/nvim/config/options.lua +++ b/config/nvim/config/options.lua @@ -5,6 +5,9 @@ local global = vim.g -- Set target text width for gww to 60. opt.tw = 60 +-- Use the internal clipboard. +opt.clipboard = "" + -- Use original gruvbox theme. global.gruvbox_material_foreground = "original" diff --git a/config/nvim/plugins/disabled.lua b/config/nvim/plugins/disabled.lua index 10155e0..6e249b0 100644 --- a/config/nvim/plugins/disabled.lua +++ b/config/nvim/plugins/disabled.lua @@ -3,14 +3,9 @@ return { { -- Disable the dashboard. "folke/snacks.nvim", - opts = function(_, opts) - opts.dashboard = { enabled = false } - end, - }, - { - -- Disable the bufferline. - "bufferline.nvim", - enabled = false, + opts = { + dashboard = { enabled = false }, + }, }, { -- Disable inline hints by default. @@ -19,4 +14,8 @@ return { inlay_hints = { enabled = false }, }, }, + + -- Disable unused plugins. + { "flash.nvim", enabled = false }, + { "bufferline.nvim", enabled = false }, } diff --git a/config/nvim/plugins/lsp.lua b/config/nvim/plugins/lsp.lua deleted file mode 100644 index db90b44..0000000 --- a/config/nvim/plugins/lsp.lua +++ /dev/null @@ -1,11 +0,0 @@ --- Configure lsp settings. -return { - { - "saghen/blink.cmp", - opts = { - keymap = { - preset = "default", - }, - }, - }, -}