Updated nvim configuration including harpoon and firenvim

This commit is contained in:
rocketdebris 2025-09-16 09:48:21 -04:00
parent 2c749ac329
commit baa2e07b0f
3 changed files with 23 additions and 2 deletions

View file

@ -1,3 +1,5 @@
vim.g.mapleader = " "
require("config.lazy")
require("mason").setup()
@ -24,9 +26,22 @@ vim.cmd([[colorscheme everforest]])
-- My custom keybinds
-- vim.keymap.set("n", "<space><space>x", "<cmd>source %<CR>") -- Can't do this with lazy.nvim apparently
vim.keymap.set("n", "<space>x", ":.lua<CR>")
vim.keymap.set("v", "<space>x", ":lua<CR>")
vim.keymap.set("n", "<Leader>x", ":.lua<CR>")
vim.keymap.set("v", "<Leader>x", ":lua<CR>")
vim.api.nvim_set_keymap('t', '<ESC>', [[<C-\><C-n>]], {noremap = true})
-- vim.api.nvim_set_keymap('i', '<C-k>', [[<C-x><C-o>]], {noremap = true})
-- Harpoon Setup and Settings
local harpoon = require("harpoon")
harpoon:setup()
vim.keymap.set("n", "<Leader>n", function() harpoon:list():add() end)
vim.keymap.set("n", "<Leader>h", function() harpoon.ui:toggle_quick_menu(harpoon:list()) end)
vim.keymap.set("n", "<Leader>d", function() harpoon:list():remove() end)
vim.keymap.set("n", "<Leader>j", function() harpoon:list():select(1) end)
vim.keymap.set("n", "<Leader>k", function() harpoon:list():select(2) end)
vim.keymap.set("n", "<Leader>l", function() harpoon:list():select(3) end)
vim.keymap.set("n", "<Leader>;", function() harpoon:list():select(4) end)
local lspconfig = require('lspconfig')
lspconfig.pylsp.setup{}

1
lua/plugins/firenvim.lua Normal file
View file

@ -0,0 +1 @@
return { 'glacambre/firenvim', build = ":call firenvim#install(0)" }

5
lua/plugins/harpoon.lua Normal file
View file

@ -0,0 +1,5 @@
return {{
"ThePrimeagen/harpoon",
branch = "harpoon2",
dependencies = { "nvim-lua/plenary.nvim" }
}}