aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--flake.nix1
-rw-r--r--init.lua17
2 files changed, 3 insertions, 15 deletions
diff --git a/flake.nix b/flake.nix
index 633f662..e9e83c5 100644
--- a/flake.nix
+++ b/flake.nix
@@ -93,6 +93,7 @@
vim-table-mode
vim-bufkill
emmet-vim
+ tagbar
];
};
};
diff --git a/init.lua b/init.lua
index 4667e37..bf3656e 100644
--- a/init.lua
+++ b/init.lua
@@ -112,19 +112,6 @@ vim.api.nvim_set_keymap('n', '<leader>lp', "<cmd>lprev<cr>", { noremap = true })
vim.api.nvim_set_keymap('n', '<leader>ln', "<cmd>lnext<cr>", { noremap = true })
vim.api.nvim_set_keymap('n', '<leader>lo', "<cmd>lopen<cr>", { noremap = true })
vim.api.nvim_set_keymap('n', '<leader>lc', "<cmd>lclose<cr>", { noremap = true })
--- Visually select line without ending
-vim.api.nvim_set_keymap('n', '<leader>v', '^v$h', { noremap = true })
--- Ledger Shortcuts
--- Copy the last entry
-vim.api.nvim_set_keymap('n', '<leader>ll', 'G{jV}y}p10l', { noremap = true })
--- Copy the current entry to the bottom, copy date from last entry
-vim.api.nvim_set_keymap('n', '<leader>lb', '{jV}yGp10l{{jvEy}jvEpl', { noremap = true })
--- Copy the current entry to the next position
---vim.api.nvim_set_keymap('n', '<leader>ln', '{jV}y}p10l', { noremap = true })
--- Jump down from line to replace dollar ammount
-vim.api.nvim_set_keymap('n', '<leader>ld', 'j^f$lC', { noremap = true })
--- After searching pull entry to current position
-vim.api.nvim_set_keymap('n', '<leader>ly', 'vapy<C-o>p{{jvEy}jvEpl', { noremap = true })
-- Shorcut to insert pudb statements for python
vim.api.nvim_set_keymap('n', '<leader>epu', 'ofrom pudb import set_trace; set_trace()<esc>', { noremap = true })
-- Shorcut to embed ipython
@@ -157,6 +144,7 @@ vim.api.nvim_set_keymap('n', '<leader>pp', 'vipJVgq', { noremap = true })
-- Add "il" text object to mean "in line"
vim.api.nvim_set_keymap('x', 'il', 'g_o^', { noremap = true })
vim.api.nvim_set_keymap('o', 'il', '<cmd>normal vil<cr>', { noremap = true })
+vim.api.nvim_set_keymap('n', '<leader>v', '^vg_o^', { noremap = true })
-- Build a custom status line
local status_line = {
@@ -375,8 +363,7 @@ vim.g.ale_fixers = {
}
-- osc-yank
-vim.api.nvim_set_keymap('n', '<leader>yy', '<cmd>OSCYankRegister 0<cr>', { noremap = true })
-vim.api.nvim_set_keymap('n', '<leader>yl', '<cmd>normal mevily`e<space>yy<cr>', { noremap = true })
+vim.api.nvim_set_keymap('n', '<leader>y', '<cmd>OSCYankRegister 0<cr>', { noremap = true })
-- vim-angry-reviewer
vim.g.AngryReviewerEnglish = 'american'