Browse Source

fix: updates

master
Tovi Jaeschke-Rogers 4 weeks ago
parent
commit
05591aa586
4 changed files with 29 additions and 1 deletions
  1. +10
    -0
      .config/nvim/lua/core/remaps.lua
  2. +8
    -0
      .config/nvim/lua/plugins/cmp.lua
  3. +10
    -0
      .config/nvim/lua/plugins/lualine.lua
  4. +1
    -1
      .config/nvim/lua/plugins/oil.lua

+ 10
- 0
.config/nvim/lua/core/remaps.lua View File

@ -43,6 +43,16 @@ vim.keymap.set("n", "N", "Nzzzv", { desc = "Previous search result" })
vim.keymap.set("n", "<leader>N", "<cmd>cprev<CR>zz", { desc = "Previous item in quickfix list" })
vim.keymap.set("n", "<leader>n", "<cmd>cnext<CR>zz", { desc = "Next item in quickfix list" })
-- Increment/decrement
vim.keymap.set("n", "+", "<C-a>")
vim.keymap.set("n", "-", "<C-x>")
-- Resize window
vim.keymap.set("n", "<C-w><left>", "5<C-w><")
vim.keymap.set("n", "<C-w><right>", "5<C-w>>")
vim.keymap.set("n", "<C-w><up>", "5<C-w>+")
vim.keymap.set("n", "<C-w><down>", "5<C-w>-")
-- Easily run global search and replace
vim.keymap.set(
"n",


+ 8
- 0
.config/nvim/lua/plugins/cmp.lua View File

@ -21,8 +21,16 @@ return {
},
},
completion = {
menu = {
winblend = vim.o.pumblend,
},
},
signature = {
enabled = true,
window = {
winblend = vim.o.pumblend,
},
},
},
opts_extend = { "sources.default" }


+ 10
- 0
.config/nvim/lua/plugins/lualine.lua View File

@ -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 = {
{


+ 1
- 1
.config/nvim/lua/plugins/oil.lua View File

@ -82,7 +82,7 @@ return {
},
})
vim.keymap.set("n", "-", function()
vim.keymap.set("n", "_", function()
vim.cmd("Oil")
end, { desc = "Open parent directory" })
end,


Loading…
Cancel
Save