feat: add harpoon
This commit is contained in:
parent
3089830451
commit
020e6b2097
3 changed files with 166 additions and 13 deletions
14
init.lua
14
init.lua
|
|
@ -1,5 +1,6 @@
|
|||
--[[
|
||||
|
||||
|
||||
alias nvi='NVIM_APPNAME="kickstart-tsorabel" nvim'
|
||||
|
||||
=====================================================================
|
||||
|
|
@ -840,7 +841,7 @@ 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',
|
||||
-- require 'kickstart.plugins.lint',
|
||||
|
||||
-- NOTE: The import below can automatically add your own plugins, configuration, etc from `lua/custom/plugins/*.lua`
|
||||
|
|
@ -848,7 +849,7 @@ require('lazy').setup({
|
|||
--
|
||||
-- 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 are using a Nerd Font: set icons to an empty table which will use the
|
||||
|
|
@ -873,7 +874,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
|
||||
|
|
@ -882,13 +882,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' })
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue