diff --git a/20250918_15h03m58s_grim.png b/20250918_15h03m58s_grim.png new file mode 100644 index 0000000..e51fee7 Binary files /dev/null and b/20250918_15h03m58s_grim.png differ diff --git a/lazy-lock.json b/lazy-lock.json index bb16445..fb83928 100644 --- a/lazy-lock.json +++ b/lazy-lock.json @@ -16,6 +16,7 @@ "mini.nvim": { "branch": "main", "commit": "12ebac8280869048c286d13bd35cfa6653e07642" }, "nvim-cmp": { "branch": "main", "commit": "12509903a5723a876abd65953109f926f4634c30" }, "nvim-lspconfig": { "branch": "master", "commit": "9962e25a23f0e992116b99a9a6400947d5a7177b" }, + "nvim-surround": { "branch": "main", "commit": "a868c256c861044beb9794b4dd126480dcdfbdad" }, "nvim-tree.lua": { "branch": "master", "commit": "d529a99f88e0dff02e0aa275db2f595cd252a2c8" }, "nvim-treesitter": { "branch": "master", "commit": "13f4346876f394973ff676670304a2b734174538" }, "nvim-web-devicons": { "branch": "master", "commit": "1c9136332840edee0c593f2f4f89598c8ed97f5f" }, diff --git a/lua/lorenz/basic.lua b/lua/lorenz/basic.lua index 65476c9..5cd89f6 100644 --- a/lua/lorenz/basic.lua +++ b/lua/lorenz/basic.lua @@ -17,9 +17,7 @@ vim.opt.relativenumber = true -- Enable mouse mode, can be useful for resizing splits for example! vim.opt.mouse = "a" - --- Don't show the mode, since it's already in the status line -vim.opt.showmode = false +-- Don't show the mode, since it's already in the status line vim.opt.showmode = false -- Enable break indent vim.opt.breakindent = true @@ -108,3 +106,8 @@ vim.keymap.set("n", "y", '"+y') vim.keymap.set("n", "Y", '"+Y') vim.keymap.set("v", "y", '"+y') vim.keymap.set("v", "Y", '"+Y') + +vim.keymap.set("n", "j", "jzz") +vim.keymap.set("n", "k", "kzz") +vim.keymap.set("n", "n", "nzz") +vim.keymap.set("n", "N", "nzz") diff --git a/lua/lorenz/lazy.lua b/lua/lorenz/lazy.lua index b332115..a773904 100644 --- a/lua/lorenz/lazy.lua +++ b/lua/lorenz/lazy.lua @@ -18,6 +18,17 @@ require("lazy").setup({ config = true, }, + { + "kylechui/nvim-surround", + version = "^3.0.0", -- Use for stability; omit to use `main` branch for the latest features + event = "VeryLazy", + config = function() + require("nvim-surround").setup({ + -- Configuration here, or leave empty to use defaults + }) + end, + }, + "m4xshen/autoclose.nvim", {