1
0

Compare commits

...

2 Commits

Author SHA1 Message Date
88c2022eb6 Try lazy loading more plugins 2023-09-14 17:03:19 +02:00
83479990d0 Add trouble plugin 2023-09-13 20:52:15 +02:00
6 changed files with 38 additions and 8 deletions

View File

@ -38,6 +38,7 @@
"resession.nvim": { "branch": "master", "commit": "0be4f5401f6f843b320c0ba9035fe682b6b89d0d" },
"statuscol.nvim": { "branch": "main", "commit": "0944234914438695050eec6f83b4669864680c1a" },
"telescope.nvim": { "branch": "0.1.x", "commit": "9a9ca52206c2f39d2145c8c5458ddd2f6ef6e706" },
"trouble.nvim": { "branch": "main", "commit": "3f85d8ed30e97ceeddbbcf80224245d347053711" },
"undotree": { "branch": "main", "commit": "2685ce282702ab0b79c65916f352db2265b245dd" },
"vim-wakatime": { "branch": "master", "commit": "0d2efa2daff34b27b0d227d4c3b136811c93db93" }
}

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")

View File

@ -0,0 +1,13 @@
local spec = {
"folke/trouble.nvim",
}
spec.dependencies = {
"nvim-tree/nvim-web-devicons",
}
spec.keys = {
{ "<Leader>ct", "<cmd>TroubleToggle<CR>" },
}
return spec