diff --git a/lazy-lock.json b/lazy-lock.json index f2573e5..9e06497 100644 --- a/lazy-lock.json +++ b/lazy-lock.json @@ -10,20 +10,22 @@ "friendly-snippets": { "branch": "main", "commit": "700c4a25caacbb4648c9a27972c2fe203948e0c2" }, "gitsigns.nvim": { "branch": "main", "commit": "47c8e3e571376b24de62408fd0c9d12f0a9fc0a3" }, "harpoon": { "branch": "harpoon2", "commit": "0378a6c428a0bed6a2781d459d7943843f374bce" }, - "lazy.nvim": { "branch": "main", "commit": "eb4957442e3182f051b0ae11da32e06d22c190e3" }, + "lazy.nvim": { "branch": "main", "commit": "4c6479e98ad643cd584e9e7c4095c463e0d810eb" }, "mason-lspconfig.nvim": { "branch": "main", "commit": "37a336b653f8594df75c827ed589f1c91d91ff6c" }, "mason.nvim": { "branch": "main", "commit": "0950b15060067f752fde13a779a994f59516ce3d" }, "nvim": { "branch": "main", "commit": "c0bea773a09e49e123136b099bce9ddc1bf395d2" }, "nvim-cmp": { "branch": "main", "commit": "a110e12d0b58eefcf5b771f533fc2cf3050680ac" }, - "nvim-lspconfig": { "branch": "master", "commit": "37f362ef42d1a604d332e8d3d7d47593852b4313" }, - "nvim-treesitter": { "branch": "master", "commit": "8dd40c7609c04d7bad7eb21d71f78c3fa4dc1c2c" }, + "nvim-lspconfig": { "branch": "master", "commit": "bd7c76375a511994c9ca8d69441f134dc10ae3bd" }, + "nvim-surround": { "branch": "main", "commit": "687ea2f33955df0042bf228853a82696265e7e2d" }, + "nvim-treesitter": { "branch": "master", "commit": "4d112977c706034370a7fed65f7c957ec268eaa2" }, "plenary": { "branch": "master", "commit": "a3e3bc82a3f95c5ed0d7201546d5d2c19b20d683" }, "plenary.nvim": { "branch": "master", "commit": "a3e3bc82a3f95c5ed0d7201546d5d2c19b20d683" }, "telescope.nvim": { "branch": "master", "commit": "d90956833d7c27e73c621a61f20b29fdb7122709" }, - "trouble.nvim": { "branch": "main", "commit": "e0b35a273df58b03612255783cf475a782ede7e0" }, + "trouble.nvim": { "branch": "main", "commit": "58a3acfc6d8d819324dab4c87068596319032e64" }, "undotree": { "branch": "master", "commit": "56c684a805fe948936cda0d1b19505b84ad7e065" }, "vim-be-good": { "branch": "master", "commit": "4fa57b7957715c91326fcead58c1fa898b9b3625" }, "vim-fugitive": { "branch": "master", "commit": "64d6cafb9dcbacce18c26d7daf617ebb96b273f3" }, + "vim-suda": { "branch": "master", "commit": "b97fab52f9cdeabe2bbb5eb98d82356899f30829" }, "vim-tmux-navigator": { "branch": "master", "commit": "5b3c701686fb4e6629c100ed32e827edf8dad01e" }, "zen-mode.nvim": { "branch": "main", "commit": "78557d972b4bfbb7488e17b5703d25164ae64e6a" } } \ No newline at end of file diff --git a/lua/haelnorr/lazy/suda.lua b/lua/haelnorr/lazy/suda.lua new file mode 100644 index 0000000..6c3d93f --- /dev/null +++ b/lua/haelnorr/lazy/suda.lua @@ -0,0 +1,3 @@ +return { + "lambdalisue/vim-suda" +} diff --git a/lua/haelnorr/lazy/surround.lua b/lua/haelnorr/lazy/surround.lua new file mode 100644 index 0000000..3df14c8 --- /dev/null +++ b/lua/haelnorr/lazy/surround.lua @@ -0,0 +1,10 @@ +return { + "kylechui/nvim-surround", + version = "*", -- 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 +} diff --git a/lua/haelnorr/remap.lua b/lua/haelnorr/remap.lua index 14292b7..54844b5 100644 --- a/lua/haelnorr/remap.lua +++ b/lua/haelnorr/remap.lua @@ -1,6 +1,8 @@ vim.g.mapleader = " " +-- directory viewer vim.keymap.set("n", "pv", vim.cmd.Ex) +-- move highlighted lines up and down vim.keymap.set("v", "J", ":m '>+1gv=gv") vim.keymap.set("v", "K", ":m '<-2gv=gv") @@ -10,19 +12,17 @@ vim.keymap.set("n", "", "zz") vim.keymap.set("n", "n", "nzzzv") vim.keymap.set("n", "N", "Nzzzv") --- greatest remap ever +-- pastes without replacing buffer vim.keymap.set("x", "p", [["_dP]]) --- next greatest remap ever : asbjornHaland +-- yanks to system clipboard vim.keymap.set({"n", "v"}, "y", [["+y]]) vim.keymap.set("n", "Y", [["+Y]]) +-- pretty sure this deletes without replacing buffer but idk vim.keymap.set({"n", "v"}, "d", [["_d]]) --- This is going to get me cancelled -vim.keymap.set("i", "", "") - -vim.keymap.set("n", "Q", "") +-- idk something with tmux, ill come back to this vim.keymap.set("n", "", "silent !tmux neww tmux-sessionizer") vim.keymap.set("n", "f", vim.lsp.buf.format) @@ -37,3 +37,14 @@ vim.keymap.set("n", "x", "!chmod +x %", { silent = true }) vim.keymap.set("n", "", function() vim.cmd("so") end) + +vim.keymap.set("n", "oo", "ok") + +vim.keymap.set("n", "", function() + if vim.inspect(vim.opt.colorcolumn:get()) == "{}" then + vim.opt.colorcolumn = "80" + else + vim.opt.colorcolumn = "" + end +end) +