From e362c45c3329cd260a2932f94ec0a95e90bc5c55 Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Wed, 16 Aug 2023 17:10:30 +0100 Subject: Improves neovim config --- nvim-primeagen/lua/lemon/packer.lua | 1 + nvim-primeagen/lua/lemon/remap.lua | 3 +++ 2 files changed, 4 insertions(+) (limited to 'nvim-primeagen/lua/lemon') diff --git a/nvim-primeagen/lua/lemon/packer.lua b/nvim-primeagen/lua/lemon/packer.lua index 5cedc4d..2402ba7 100644 --- a/nvim-primeagen/lua/lemon/packer.lua +++ b/nvim-primeagen/lua/lemon/packer.lua @@ -93,6 +93,7 @@ return require('packer').startup(function(use) use("jlanzarotta/bufexplorer") use("mhinz/vim-signify") use("lervag/vimtex") + use("szw/vim-maximizer") use { "nvim-neotest/neotest", requires = { diff --git a/nvim-primeagen/lua/lemon/remap.lua b/nvim-primeagen/lua/lemon/remap.lua index 642cb69..f9864c9 100644 --- a/nvim-primeagen/lua/lemon/remap.lua +++ b/nvim-primeagen/lua/lemon/remap.lua @@ -12,6 +12,9 @@ vim.keymap.set("n", "", "zz") vim.keymap.set("n", "n", "nzzzv") vim.keymap.set("n", "N", "Nzzzv") +-- Ensure :W does what :w does +vim.cmd("command! -nargs=0 W w") + -- greatest remap ever vim.keymap.set("x", "p", [["_dP]]) -- cgit v1.2.3