modified config

This commit is contained in:
Samuel Walker 2024-04-23 13:04:04 -06:00
parent 8df3deb6fe
commit 565f387a8b

View File

@ -161,6 +161,12 @@ vim.opt.scrolloff = 10
vim.opt.hlsearch = true
vim.keymap.set('n', '<Esc>', '<cmd>nohlsearch<CR>')
vim.keymap.set('n', '<C-M>', ':lua require("harpoon.mark").add_file()<CR>')
vim.keymap.set('n', '<C-I>', ':lua require("harpoon.mark").rm_file()<CR>')
vim.keymap.set('n', '<C-U>', ':lua require("harpoon.ui").toggle_quick_menu()<CR>')
vim.keymap.set('n', '<C-N>', ":call fzf#run({'source': 'find . ! -name *.o ! -path \"./.*\"', 'sink': 'e'})<CR>")
vim.keymap.set('n', '<tab>', '<C-n>')
-- Diagnostic keymaps
vim.keymap.set('n', '[d', vim.diagnostic.goto_prev, { desc = 'Go to previous [D]iagnostic message' })
vim.keymap.set('n', ']d', vim.diagnostic.goto_next, { desc = 'Go to next [D]iagnostic message' })
@ -227,6 +233,10 @@ vim.opt.rtp:prepend(lazypath)
require('lazy').setup({
-- NOTE: Plugins can be added with a link (or for a github repo: 'owner/repo' link).
'tpope/vim-sleuth', -- Detect tabstop and shiftwidth automatically
'nvim-lua/plenary.nvim',
'ThePrimeagen/harpoon',
'neoclide/coc.nvim',
'junegunn/fzf',
-- NOTE: Plugins can also be added by using a table,
-- with the first argument being the link and the following