From e74474ed1bcc466656af0f59fb86ec499978f20b Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Mon, 6 Nov 2023 02:27:29 +0100 Subject: nvim: Add comments --- .config/nvim/lua/mango/packer.lua | 20 +++++++++++++++----- .config/nvim/lua/mango/remap.lua | 1 + 2 files changed, 16 insertions(+), 5 deletions(-) (limited to '.config/nvim/lua') diff --git a/.config/nvim/lua/mango/packer.lua b/.config/nvim/lua/mango/packer.lua index ec25aef..4beb7fb 100644 --- a/.config/nvim/lua/mango/packer.lua +++ b/.config/nvim/lua/mango/packer.lua @@ -1,15 +1,17 @@ vim.cmd.packadd('packer.nvim') return require('packer').startup(function(use) + -- Package manager use 'wbthomason/packer.nvim' - use 'wellle/targets.vim' - + -- Colorscheme use { 'rose-pine/neovim', as = 'rose-pine', } + -- More textobjects; more is more + use 'wellle/targets.vim' use { 'nvim-treesitter/nvim-treesitter-textobjects', after = 'nvim-treesitter', @@ -17,15 +19,23 @@ return require('packer').startup(function(use) run = ':TSUpdate', } + -- Efficiency improvements use 'kylechui/nvim-surround' - use 'mbbill/undotree' - use 'tpope/vim-fugitive' + use 'mattn/emmet-vim' use 'tpope/vim-commentary' + + -- Git integration + use 'tpope/vim-fugitive' + + -- Improvements to builtin functionality + use 'mbbill/undotree' use 'tpope/vim-speeddating' use 'tpope/vim-vinegar' - use 'mattn/emmet-vim' + + -- Additional language support use 'Glench/Vim-Jinja2-Syntax' + -- LSP support use { 'VonHeikemen/lsp-zero.nvim', branch = 'v2.x', diff --git a/.config/nvim/lua/mango/remap.lua b/.config/nvim/lua/mango/remap.lua index 2fb1ac5..210bb12 100644 --- a/.config/nvim/lua/mango/remap.lua +++ b/.config/nvim/lua/mango/remap.lua @@ -52,6 +52,7 @@ local function transpose_chars(rev) end) end +-- Transpose characters remap('n', 't', transpose_chars) remap('n', 'T', function() transpose_chars(true) -- cgit v1.2.3