Compare commits

...

4 Commits

4 changed files with 25 additions and 18 deletions

View File

@@ -1,6 +1,7 @@
{ {
"extras": [ "extras": [
"lazyvim.plugins.extras.coding.copilot", "lazyvim.plugins.extras.coding.copilot",
"lazyvim.plugins.extras.coding.yanky",
"lazyvim.plugins.extras.editor.aerial", "lazyvim.plugins.extras.editor.aerial",
"lazyvim.plugins.extras.editor.leap", "lazyvim.plugins.extras.editor.leap",
"lazyvim.plugins.extras.editor.symbols-outline", "lazyvim.plugins.extras.editor.symbols-outline",
@@ -25,4 +26,4 @@
"NEWS.md": "2123" "NEWS.md": "2123"
}, },
"version": 2 "version": 2
} }

View File

@@ -1,19 +1,22 @@
-- Keymaps are automatically loaded on the VeryLazy event -- Keymaps are automatically loaded on the VeryLazy event
-- Default keymaps that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/keymaps.lua -- Default keymaps that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/keymaps.lua
-- Add any additional keymaps here -- Add any additional keymaps here
local wk = require("which-key")
local keymap = vim.keymap.set -- ╭──────────────────────────────────────────────────────────╮
-- │ Comment box │
-- ────────────────────────────────────────────────────────── -- ──────────────────────────────────────────────────────────
-- │ Comment box │ wk.register({
-- ╰──────────────────────────────────────────────────────────╯ ["<Leader>"] = {
local cb = require("comment-box") b = {
c = {
-- left aligned fixed size box with left aligned text name = "□ Comment boxes",
keymap({ "n", "v" }, "<Leader>bcb", cb.lbox, { desc = "Comment: Left aligned" }) b = { "<Cmd>CBccbox<CR>", "Box Title" },
-- centered adapted box with centered text t = { "<Cmd>CBllline<CR>", "Titled Line" },
keymap({ "n", "v" }, "<Leader>bcc", cb.ccbox, { desc = "Comment: Centered" }) l = { "<Cmd>CBline<CR>", "Simple Line" },
m = { "<Cmd>CBllbox14<CR>", "Marked" },
-- centered line d = { "<Cmd>CBd<CR>", "Remove a box" },
keymap("n", "<Leader>bcl", cb.cline, { desc = "Comment: Centered line" }) },
keymap("i", "<M-l>", cb.cline, { desc = "Comment: Centered line" }) },
},
})

View File

@@ -40,8 +40,8 @@ require("lazy").setup({
lazy = false, lazy = false,
-- It's recommended to leave version=false for now, since a lot the plugin that support versioning, -- It's recommended to leave version=false for now, since a lot the plugin that support versioning,
-- have outdated releases, which may break your Neovim install. -- have outdated releases, which may break your Neovim install.
version = false, -- always use the latest git commit -- version = false, -- always use the latest git commit
-- version = "*", -- try installing the latest stable version for plugins that support semver version = "*", -- try installing the latest stable version for plugins that support semver
}, },
install = { colorscheme = { "tokyonight" } }, install = { colorscheme = { "tokyonight" } },
checker = { enabled = true }, -- automatically check for plugin updates checker = { enabled = true }, -- automatically check for plugin updates

View File

@@ -1,5 +1,8 @@
-- luacheck: globals vim -- luacheck: globals vim
return { return {
-- Cloak allows you to overlay *'s over defined patterns in defined files.
-- https://github.com/laytan/cloak.nvim
{ "laytan/cloak.nvim" },
-- Not UFO in the sky, but an ultra fold in Neovim. -- Not UFO in the sky, but an ultra fold in Neovim.
-- https://github.com/kevinhwang91/nvim-ufo/ -- https://github.com/kevinhwang91/nvim-ufo/
{ {