1
0

Try lazy loading more plugins

This commit is contained in:
Patrick Auernig 2023-09-14 17:03:19 +02:00
parent 83479990d0
commit 88c2022eb6
4 changed files with 24 additions and 8 deletions

View File

@ -3,15 +3,17 @@ local map = vim.keymap.set
map("n", "<Leader><CR>", "<cmd>noh<CR>")
map("n", "U", "<cmd>redo<CR>")
map("n", "Y", "y$")
map({"n", "v", "i"}, "<C-s>", "<cmd>w<CR>")
map("n", "s", "<NOP>")
-- Move up and down visual lines for the few times I need wrapping
map("n", "j", "gj")
map("n", "k", "gk")
-- More sensible start and end of line
map({"n", "v"}, "H", "^")
map({"n", "v"}, "L", "$")
map({"n", "v", "i"}, "<C-s>", "<cmd>w<CR>")
map("n", "s", "<NOP>")
-- Exit insert mode by quickly pressing jk
map("i", "jk", "<ESC>l", { silent = true })

View File

@ -0,0 +1,12 @@
local spec = {
"numToStr/Comment.nvim",
}
spec.opts = {}
spec.keys = {
{ "gcc", mode = "n" },
{ "gc", mode = "v" },
}
return spec

View File

@ -10,10 +10,5 @@ return {
opts = {},
},
{
"numToStr/Comment.nvim",
opts = {},
},
"nvim-lua/plenary.nvim",
}

View File

@ -9,6 +9,13 @@ spec.dependencies = {
"ThePrimeagen/harpoon",
}
spec.keys = {
"<Leader>ff",
"<Leader>fb",
"<Leader>fg",
"<Leader>fh",
}
spec.config = function()
local telescope = require("telescope")
local actions = require("telescope.actions")