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", - }, - }, - }, -}