feat: add harpoon

This commit is contained in:
tsorabel-pc 2024-03-07 23:18:24 +01:00
parent 030f5546b6
commit 86e6746468
3 changed files with 166 additions and 13 deletions

View file

@ -1,5 +1,6 @@
--[[
alias nvi='NVIM_APPNAME="kickstart-tsorabel" nvim'
=====================================================================
@ -823,14 +824,14 @@ require('lazy').setup({
-- Uncomment any of the lines below to enable them (you will need to restart nvim).
--
-- require 'kickstart.plugins.debug',
-- require 'kickstart.plugins.indent_line',
require 'kickstart.plugins.indent_line',
-- NOTE: The import below can automatically add your own plugins, configuration, etc from `lua/custom/plugins/*.lua`
-- This is the easiest way to modularize your config.
--
-- Uncomment the following line and add your plugins to `lua/custom/plugins/*.lua` to get going.
-- For additional information, see `:help lazy.nvim-lazy.nvim-structuring-your-plugins`
-- { import = 'custom.plugins' },
{ import = 'custom.plugins' },
}, {
ui = {
-- If you have a Nerd Font, set icons to an empty table which will use the
@ -855,7 +856,6 @@ require('lazy').setup({
-- The line beneath this is called `modeline`. See `:help modeline`
-- vim: ts=2 sts=2 sw=2 et
--
local map = vim.keymap.set
-- Set current wordl
@ -864,13 +864,9 @@ map({ 'n' }, '<leader>cw', ':%s/\\<<C-r><C-w>\\>/<C-r><C-w>/gI<Left><Left><Left>
-- Close buffer
map({ 'n' }, '<leader>x', '<cmd>bd<CR>', { desc = 'Close buffer' })
-- misc mappings
map('n', 'n', 'nzzzv')
map('n', 'N', 'Nzzzv')
-- Create new vertical buffer
map({ 'n' }, '<leader>wb', '<cmd>vs<CR>', { desc = 'New [W]orkspace [B]uffer' })
-- Resize buffer (width)
map({ 'n' }, '<C-m>', '<cmd>vertical res -5^M<CR>', { desc = 'Buffer - width' })
map({ 'n' }, '<C-n>', '<cmd>vertical res +5^M<CR>', { desc = 'Buffer + width' })
-- map({ 'n' }, '<C-m>', '<cmd>vertical res -5^M<CR>', { desc = 'Buffer - width' })
map({ 'n' }, '<C-m>', '<cmd>vertical res +5^M<CR>', { desc = 'Buffer + width' })