diff --git a/.config/nvim/lua/core/remaps.lua b/.config/nvim/lua/core/remaps.lua index f2c7bfe..95afadf 100644 --- a/.config/nvim/lua/core/remaps.lua +++ b/.config/nvim/lua/core/remaps.lua @@ -43,6 +43,16 @@ vim.keymap.set("n", "N", "Nzzzv", { desc = "Previous search result" }) vim.keymap.set("n", "N", "cprevzz", { desc = "Previous item in quickfix list" }) vim.keymap.set("n", "n", "cnextzz", { desc = "Next item in quickfix list" }) +-- Increment/decrement +vim.keymap.set("n", "+", "") +vim.keymap.set("n", "-", "") + +-- Resize window +vim.keymap.set("n", "", "5<") +vim.keymap.set("n", "", "5>") +vim.keymap.set("n", "", "5+") +vim.keymap.set("n", "", "5-") + -- Easily run global search and replace vim.keymap.set( "n", diff --git a/.config/nvim/lua/plugins/cmp.lua b/.config/nvim/lua/plugins/cmp.lua index 09c8a6c..63836d4 100644 --- a/.config/nvim/lua/plugins/cmp.lua +++ b/.config/nvim/lua/plugins/cmp.lua @@ -21,8 +21,16 @@ return { }, }, + completion = { + menu = { + winblend = vim.o.pumblend, + }, + }, signature = { enabled = true, + window = { + winblend = vim.o.pumblend, + }, }, }, opts_extend = { "sources.default" } diff --git a/.config/nvim/lua/plugins/lualine.lua b/.config/nvim/lua/plugins/lualine.lua index 6bf306a..32064f4 100644 --- a/.config/nvim/lua/plugins/lualine.lua +++ b/.config/nvim/lua/plugins/lualine.lua @@ -8,6 +8,15 @@ return { local lualine = require("lualine") local lazy_status = require("lazy.status") + local function macro_recording() + local recording_register = vim.fn.reg_recording() + if recording_register == "" then + return "" + else + return "Recording @" .. recording_register + end + end + lualine.setup({ options = { theme = "kanagawa", @@ -35,6 +44,7 @@ return { lualine_c = { { "filename", file_status = true, path = 1 }, { "harpoon2" }, + { macro_recording, color = { fg = "#ff9e64", gui = "bold" } }, }, lualine_x = { { diff --git a/.config/nvim/lua/plugins/oil.lua b/.config/nvim/lua/plugins/oil.lua index 130cc82..32afdff 100644 --- a/.config/nvim/lua/plugins/oil.lua +++ b/.config/nvim/lua/plugins/oil.lua @@ -82,7 +82,7 @@ return { }, }) - vim.keymap.set("n", "-", function() + vim.keymap.set("n", "_", function() vim.cmd("Oil") end, { desc = "Open parent directory" }) end,