Skip to content

Instantly share code, notes, and snippets.

@mwelwankuta
Last active April 10, 2025 20:53
Show Gist options
  • Save mwelwankuta/67fcee090f7bf5d25e080ef104d18453 to your computer and use it in GitHub Desktop.
Save mwelwankuta/67fcee090f7bf5d25e080ef104d18453 to your computer and use it in GitHub Desktop.
My Lunarvim Config
-- Read the docs: https://www.lunarvim.org/docs/configuration
-- Example configs: https://github.com/LunarVim/starter.lvim
-- Video Tutorials: https://www.youtube.com/watch?v=sFA9kX-Ud_c&list=PLhoH5vyxr6QqGu0i7tt_XoVK9v-KvZ3m6
-- Forum: https://www.reddit.com/r/lunarvim/
-- Discord: https://discord.com/invite/Xb9B4Ny
--
vim.opt.relativenumber = true
lvim.plugins = {
{ "lunarvim/colorschemes" },
{ "Skullamortis/forest.nvim" },
{ "morhetz/gruvbox" },
{ "christoomey/vim-tmux-navigator" },
{ "tribela/vim-transparent" },
{ "psliwka/vim-smoothie" },
{
"ThePrimeagen/harpoon",
branch = "harpoon2",
dependencies = { "nvim-lua/plenary.nvim" }
},
{ 'wakatime/vim-wakatime', lazy = false },
{ 'sbdchd/neoformat' }
}
lvim.colorscheme = "forest"
local harpoon = require("harpoon")
-- REQUIRED
harpoon:setup()
-- REQUIRED
vim.keymap.set("n", "<leader>a", function() harpoon:list():add() end)
vim.keymap.set("n", "<C-e>", function() harpoon.ui:toggle_quick_menu(harpoon:list()) end)
vim.keymap.set("n", "<C-S-h>", function() harpoon:list():select(1) end)
vim.keymap.set("n", "<C-S-j>", function() harpoon:list():select(2) end)
vim.keymap.set("n", "<C-S-k>", function() harpoon:list():select(3) end)
vim.keymap.set("n", "<C-S-l>", function() harpoon:list():select(4) end)
vim.keymap.set('n', '<leader>ca', vim.lsp.buf.code_action, {})
-- Toggle previous & next buffers stored within Harpoon list
vim.keymap.set("n", "<C-S-P>", function() harpoon:list():prev() end)
vim.keymap.set("n", "<C-S-N>", function() harpoon:list():next() end)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment