Try lazy loading more plugins
This commit is contained in:
parent
83479990d0
commit
88c2022eb6
@ -3,15 +3,17 @@ local map = vim.keymap.set
|
|||||||
map("n", "<Leader><CR>", "<cmd>noh<CR>")
|
map("n", "<Leader><CR>", "<cmd>noh<CR>")
|
||||||
map("n", "U", "<cmd>redo<CR>")
|
map("n", "U", "<cmd>redo<CR>")
|
||||||
map("n", "Y", "y$")
|
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", "j", "gj")
|
||||||
map("n", "k", "gk")
|
map("n", "k", "gk")
|
||||||
|
|
||||||
|
-- More sensible start and end of line
|
||||||
map({"n", "v"}, "H", "^")
|
map({"n", "v"}, "H", "^")
|
||||||
map({"n", "v"}, "L", "$")
|
map({"n", "v"}, "L", "$")
|
||||||
|
|
||||||
map({"n", "v", "i"}, "<C-s>", "<cmd>w<CR>")
|
|
||||||
map("n", "s", "<NOP>")
|
|
||||||
|
|
||||||
-- Exit insert mode by quickly pressing jk
|
-- Exit insert mode by quickly pressing jk
|
||||||
map("i", "jk", "<ESC>l", { silent = true })
|
map("i", "jk", "<ESC>l", { silent = true })
|
||||||
|
|
||||||
|
12
lua/valeth/plugins/comment.lua
Normal file
12
lua/valeth/plugins/comment.lua
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
local spec = {
|
||||||
|
"numToStr/Comment.nvim",
|
||||||
|
}
|
||||||
|
|
||||||
|
spec.opts = {}
|
||||||
|
|
||||||
|
spec.keys = {
|
||||||
|
{ "gcc", mode = "n" },
|
||||||
|
{ "gc", mode = "v" },
|
||||||
|
}
|
||||||
|
|
||||||
|
return spec
|
@ -10,10 +10,5 @@ return {
|
|||||||
opts = {},
|
opts = {},
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
|
||||||
"numToStr/Comment.nvim",
|
|
||||||
opts = {},
|
|
||||||
},
|
|
||||||
|
|
||||||
"nvim-lua/plenary.nvim",
|
"nvim-lua/plenary.nvim",
|
||||||
}
|
}
|
||||||
|
@ -9,6 +9,13 @@ spec.dependencies = {
|
|||||||
"ThePrimeagen/harpoon",
|
"ThePrimeagen/harpoon",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
spec.keys = {
|
||||||
|
"<Leader>ff",
|
||||||
|
"<Leader>fb",
|
||||||
|
"<Leader>fg",
|
||||||
|
"<Leader>fh",
|
||||||
|
}
|
||||||
|
|
||||||
spec.config = function()
|
spec.config = function()
|
||||||
local telescope = require("telescope")
|
local telescope = require("telescope")
|
||||||
local actions = require("telescope.actions")
|
local actions = require("telescope.actions")
|
||||||
|
Loading…
Reference in New Issue
Block a user