diff options
author | Matthew Lemon <y@yulqen.org> | 2023-08-16 17:10:30 +0100 |
---|---|---|
committer | Matthew Lemon <y@yulqen.org> | 2023-08-16 17:10:30 +0100 |
commit | e362c45c3329cd260a2932f94ec0a95e90bc5c55 (patch) | |
tree | 9681003320bfb0476c48b511ae6939d9e7a90f3d | |
parent | 32e46461cfc98f55bc5c402f5835e033f601b0c1 (diff) |
Improves neovim config
Diffstat (limited to '')
-rw-r--r-- | nvim-primeagen/after/plugin/ale.lua | 1 | ||||
-rw-r--r-- | nvim-primeagen/after/plugin/maximizer.lua | 1 | ||||
-rw-r--r-- | nvim-primeagen/lua/lemon/packer.lua | 1 | ||||
-rw-r--r-- | nvim-primeagen/lua/lemon/remap.lua | 3 |
4 files changed, 6 insertions, 0 deletions
diff --git a/nvim-primeagen/after/plugin/ale.lua b/nvim-primeagen/after/plugin/ale.lua index b3b5c0d..e55090c 100644 --- a/nvim-primeagen/after/plugin/ale.lua +++ b/nvim-primeagen/after/plugin/ale.lua @@ -11,6 +11,7 @@ local linters = { local fixers = { python = {'ruff', 'isort', 'yapf', 'black', 'autoimport'}, go = {'gofmt'}, + cpp = {'clang-format'}, rust = {'rustfmt'}, } diff --git a/nvim-primeagen/after/plugin/maximizer.lua b/nvim-primeagen/after/plugin/maximizer.lua new file mode 100644 index 0000000..ff652ae --- /dev/null +++ b/nvim-primeagen/after/plugin/maximizer.lua @@ -0,0 +1 @@ +vim.keymap.set("n", "<C-w>m", vim.cmd.MaximizerToggle) 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", "<C-u>", "<C-u>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", "<leader>p", [["_dP]]) |