summaryrefslogtreecommitdiff
path: root/.config
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2023-11-06 02:27:29 +0100
committerThomas Voss <mail@thomasvoss.com> 2023-11-06 02:27:29 +0100
commite74474ed1bcc466656af0f59fb86ec499978f20b (patch)
tree6af894dc0e8d24df901cc80f1adc7205541e572b /.config
parent219b9bce9e76e6be5ea91543796b00499722ae16 (diff)
nvim: Add comments
Diffstat (limited to '.config')
-rw-r--r--.config/nvim/lua/mango/packer.lua20
-rw-r--r--.config/nvim/lua/mango/remap.lua1
2 files changed, 16 insertions, 5 deletions
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', '<leader>t', transpose_chars)
remap('n', '<leader>T', function()
transpose_chars(true)