nvim: align plugin descriptions

This commit is contained in:
PowerUser64 2022-07-26 02:24:10 -07:00
parent 5ec4df6e75
commit 514e74698c

View file

@ -14,7 +14,7 @@ return require('packer').startup({function()
-- TODO: Find a better way to organize this -- TODO: Find a better way to organize this
-- impatient (needs to go early) -- impatient (needs to go early)
use { -- lewis6991: impatient: Make nvim load faster by caching them - needs to load early use { -- lewis6991: impatient: Make nvim load faster by caching them - needs to load early
'lewis6991/impatient.nvim', 'lewis6991/impatient.nvim',
config = function() config = function()
require('impatient') require('impatient')
@ -22,7 +22,7 @@ return require('packer').startup({function()
} }
-- Packer -- Packer
use { -- packer: plugin manager use { -- packer: plugin manager
'wbthomason/packer.nvim', 'wbthomason/packer.nvim',
config = function() config = function()
-- Map :PS to :PackerSync -- Map :PS to :PackerSync
@ -31,13 +31,13 @@ return require('packer').startup({function()
} }
-- Colors (decorations) -- Colors (decorations)
use { -- treesitter: syntax highlighting and more use { -- treesitter: syntax highlighting and more
'nvim-treesitter/nvim-treesitter', run = ':TSUpdate', 'nvim-treesitter/nvim-treesitter', run = ':TSUpdate',
config = function() config = function()
require('blake.lsp').treesitter() require('blake.lsp').treesitter()
end, end,
} }
use { -- onedark.nvim: onedark theme use { -- onedark.nvim: onedark theme
'navarasu/onedark.nvim', 'navarasu/onedark.nvim',
config = function() config = function()
-- vim.g.onedark_transparent_background = true -- vim.g.onedark_transparent_background = true
@ -48,7 +48,7 @@ return require('packer').startup({function()
]] ]]
end end
} }
use { -- tokyonight.nvim: tokyonight theme use { -- tokyonight.nvim: tokyonight theme
'folke/tokyonight.nvim', 'folke/tokyonight.nvim',
config = function() config = function()
-- vim.g.onedark_transparent_background = true -- vim.g.onedark_transparent_background = true
@ -61,24 +61,24 @@ return require('packer').startup({function()
vim.cmd 'colorscheme tokyonight' vim.cmd 'colorscheme tokyonight'
end, end,
} }
use { -- newspring: Good light theme for writing use { -- newspring: Good light theme for writing
'NLKNguyen/papercolor-theme', 'NLKNguyen/papercolor-theme',
} }
use { -- statusline: lualine use { -- statusline: lualine
'nvim-lualine/lualine.nvim', 'nvim-lualine/lualine.nvim',
requires = {'kyazdani42/nvim-web-devicons', opt = true}, requires = {'kyazdani42/nvim-web-devicons', opt = true},
config = function() config = function()
require('blake.other').lualine() require('blake.other').lualine()
end, end,
} }
use { -- nvim-tabline: batter looking tabline use { -- nvim-tabline: batter looking tabline
'alvarosevilla95/luatab.nvim', 'alvarosevilla95/luatab.nvim',
requires = 'kyazdani42/nvim-web-devicons', requires = 'kyazdani42/nvim-web-devicons',
config = function() config = function()
require('luatab').setup() require('luatab').setup()
end end
} }
use { -- nvim-colorizer: css color tag highlighter (ex- #FFB13B) use { -- nvim-colorizer: css color tag highlighter (ex- #FFB13B)
'norcalli/nvim-colorizer.lua', 'norcalli/nvim-colorizer.lua',
config = function() config = function()
vim.cmd 'command! COL ColorizerToggle' vim.cmd 'command! COL ColorizerToggle'
@ -87,7 +87,7 @@ return require('packer').startup({function()
-- IDE features -- IDE features
---- LSP ---- LSP
use { -- lspinstall: language server installer, (lspconfig is here too) use { -- lspinstall: language server installer, (lspconfig is here too)
'williamboman/nvim-lsp-installer', 'williamboman/nvim-lsp-installer',
{ -- lspconfig: default language server configurations { -- lspconfig: default language server configurations
'neovim/nvim-lspconfig', 'neovim/nvim-lspconfig',
@ -97,7 +97,7 @@ return require('packer').startup({function()
end end
} }
} }
use { -- ts-context-commentstring: set commentstring based on context from treesitter (two langs in one file) use { -- ts-context-commentstring: set commentstring based on context from treesitter (two langs in one file)
'JoosepAlviste/nvim-ts-context-commentstring', 'JoosepAlviste/nvim-ts-context-commentstring',
requires = 'nvim-treesitter/nvim-treesitter', requires = 'nvim-treesitter/nvim-treesitter',
config = function() config = function()
@ -109,7 +109,7 @@ return require('packer').startup({function()
} }
end, end,
} }
use { -- cmp: completion menu use { -- cmp: completion menu
'hrsh7th/nvim-cmp', 'hrsh7th/nvim-cmp',
config = function() config = function()
require('blake.lsp').cmp() require('blake.lsp').cmp()
@ -128,30 +128,30 @@ return require('packer').startup({function()
'hrsh7th/cmp-emoji', 'hrsh7th/cmp-emoji',
}, },
} }
use { -- luasnip: snippits plugin use { -- luasnip: snippits plugin
'L3MON4D3/LuaSnip', 'L3MON4D3/LuaSnip',
config = function() config = function()
require("luasnip.loaders.from_vscode").lazy_load() require("luasnip.loaders.from_vscode").lazy_load()
end end
} }
use { -- friendly-snippets: lots of good snippits use { -- friendly-snippets: lots of good snippits
'rafamadriz/friendly-snippets' 'rafamadriz/friendly-snippets'
} }
use { -- lsp_signature: function parameter previews use { -- lsp_signature: function parameter previews
'ray-x/lsp_signature.nvim', 'ray-x/lsp_signature.nvim',
after = 'nvim-lspconfig', after = 'nvim-lspconfig',
config = function() config = function()
require('blake.lsp').signature() require('blake.lsp').signature()
end, end,
} }
use { -- symbols-outline: treesitter-based document outline (SO) use { -- symbols-outline: treesitter-based document outline (SO)
'simrat39/symbols-outline.nvim', 'simrat39/symbols-outline.nvim',
config = function() config = function()
vim.cmd 'command! SO SymbolsOutline' vim.cmd 'command! SO SymbolsOutline'
vim.cmd 'nnoremap <Leader>so <cmd>SymbolsOutline<CR>' vim.cmd 'nnoremap <Leader>so <cmd>SymbolsOutline<CR>'
end, end,
} }
-- use { -- ALE: Support for lots of linters, etc -- use { -- ALE: Support for lots of linters, etc
-- 'dense-analysis/ale', -- 'dense-analysis/ale',
-- ft = {'sh', 'zsh', 'zshrc', 'bashrc', 'bash'}, -- ft = {'sh', 'zsh', 'zshrc', 'bashrc', 'bash'},
-- config = function() -- config = function()
@ -159,25 +159,25 @@ return require('packer').startup({function()
-- end -- end
-- } -- }
---- DAP (Debug Adapter Protocol) ---- DAP (Debug Adapter Protocol)
use { -- nvim-dap: DAP support use { -- nvim-dap: DAP support
'mfussenegger/nvim-dap', 'mfussenegger/nvim-dap',
config = function() config = function()
require('blake.dap').nvim_dap() require('blake.dap').nvim_dap()
end end
} }
-- use { -- dap-buddy: DAP adapter installer -- use { -- dap-buddy: DAP adapter installer
-- 'Pocco81/dap-buddy.nvim', -- 'Pocco81/dap-buddy.nvim',
-- config = function() -- config = function()
-- require('blake.dap').dap_buddy() -- require('blake.dap').dap_buddy()
-- end -- end
-- } -- }
use { -- virtual-text: Print Variable names while debugging use { -- virtual-text: Print Variable names while debugging
'theHamsta/nvim-dap-virtual-text', 'theHamsta/nvim-dap-virtual-text',
config = function() config = function()
require("nvim-dap-virtual-text").setup() require("nvim-dap-virtual-text").setup()
end end
} }
use { -- nvim-dap-ui: a UI for nvim-dap use { -- nvim-dap-ui: a UI for nvim-dap
'rcarriga/nvim-dap-ui', 'rcarriga/nvim-dap-ui',
config = function() config = function()
require('blake.dap').dap_ui() require('blake.dap').dap_ui()
@ -185,14 +185,14 @@ return require('packer').startup({function()
} }
---- Other IDE features ---- Other IDE features
use { -- telescope: fuzzy finder for finding fuzzy things use { -- telescope: fuzzy finder for finding fuzzy things
'nvim-telescope/telescope.nvim', 'nvim-telescope/telescope.nvim',
requires = { {'nvim-lua/plenary.nvim'} }, requires = { {'nvim-lua/plenary.nvim'} },
config = function() config = function()
require('blake.other').telescope() require('blake.other').telescope()
end end
} }
use { -- gitsigns: git integration use { -- gitsigns: git integration
'lewis6991/gitsigns.nvim', 'lewis6991/gitsigns.nvim',
requires = { requires = {
'nvim-lua/plenary.nvim' 'nvim-lua/plenary.nvim'
@ -201,37 +201,37 @@ return require('packer').startup({function()
require('blake.other').gitsigns() require('blake.other').gitsigns()
end, end,
} }
-- use { -- nvim-tree: file manager -- use { -- nvim-tree: file manager
-- 'kyazdani42/nvim-tree.lua', -- 'kyazdani42/nvim-tree.lua',
-- requires = 'kyazdani42/nvim-web-devicons', -- requires = 'kyazdani42/nvim-web-devicons',
-- config = function() -- config = function()
-- require('blake.other').nvimtree() -- require('blake.other').nvimtree()
-- end -- end
-- } -- }
use { -- toggleterm: terminal use { -- toggleterm: terminal
'akinsho/toggleterm.nvim', 'akinsho/toggleterm.nvim',
tag = 'v1.*', tag = 'v1.*',
config = function() config = function()
require('blake.other').toggleterm() require('blake.other').toggleterm()
end end
} }
use { -- neoscroll: Smooth Scrolling use { -- neoscroll: Smooth Scrolling
'karb94/neoscroll.nvim', 'karb94/neoscroll.nvim',
config = function() config = function()
require('blake.other').neoscroll() require('blake.other').neoscroll()
end, end,
} }
use { -- auto-session: automatic session management use { -- auto-session: automatic session management
'rmagatti/auto-session', 'rmagatti/auto-session',
config = function() config = function()
require('blake.other').autosession() require('blake.other').autosession()
end end
} }
use { -- glow: Markdown preview use { -- glow: Markdown preview
'ellisonleao/glow.nvim', 'ellisonleao/glow.nvim',
ft = { 'md', 'markdown', } ft = { 'md', 'markdown', }
} }
use { -- zen mode: (ZenMode or ZM) use { -- zen mode: (ZenMode or ZM)
"folke/zen-mode.nvim", "folke/zen-mode.nvim",
config = function() config = function()
require('blake.other').zenmode() require('blake.other').zenmode()
@ -239,31 +239,31 @@ return require('packer').startup({function()
vim.cmd 'inoremap <F10> <cmd>ZenMode<CR>' vim.cmd 'inoremap <F10> <cmd>ZenMode<CR>'
end, end,
} }
-- use { -- twilight.nvim: dim text outside paragraph or function -- use { -- twilight.nvim: dim text outside paragraph or function
-- 'folke/twilight.nvim', -- 'folke/twilight.nvim',
-- config = function() -- config = function()
-- vim.cmd 'command! TW Twilight' -- vim.cmd 'command! TW Twilight'
-- require("twilight").setup() -- require("twilight").setup()
-- end, -- end,
-- } -- }
use { -- matchup: Use the percent (%) key for more things use { -- matchup: Use the percent (%) key for more things
'andymass/vim-matchup', 'andymass/vim-matchup',
} }
-- use { -- lightspeed: Jump around in files quickly -- use { -- lightspeed: Jump around in files quickly
-- 'ggandor/lightspeed.nvim', -- 'ggandor/lightspeed.nvim',
-- } -- }
use { -- indentline: Line indent indicators use { -- indentline: Line indent indicators
'lukas-reineke/indent-blankline.nvim', 'lukas-reineke/indent-blankline.nvim',
config = function() config = function()
require('blake.other').indent_blankline() require('blake.other').indent_blankline()
end end
} }
-- use { -- targets.vim: fix ci' and other things to work right -- use { -- targets.vim: fix ci' and other things to work right
-- 'wellle/targets.vim', -- 'wellle/targets.vim',
-- } -- }
-- Conveniences -- Conveniences
use { -- sort motion: (gs) use { -- sort motion: (gs)
'christoomey/vim-sort-motion', 'christoomey/vim-sort-motion',
config = function() config = function()
vim.cmd [[ vim.cmd [[
@ -273,19 +273,19 @@ return require('packer').startup({function()
end, end,
requires = 'navicore/vissort.vim', -- config requires requires = 'navicore/vissort.vim', -- config requires
} }
use { -- ghost: Web browser integration use { -- ghost: Web browser integration
'raghur/vim-ghost', 'raghur/vim-ghost',
opt = true, opt = true,
cmd = {'GhostStart', 'GhostInstall', 'GhostStop', 'GhostSync', 'GhostToggleSync',}, cmd = {'GhostStart', 'GhostInstall', 'GhostStop', 'GhostSync', 'GhostToggleSync',},
} }
use { -- undotree: visual undo tree use { -- undotree: visual undo tree
'mbbill/undotree', 'mbbill/undotree',
config = function() config = function()
vim.cmd 'nnoremap <F5> <cmd>UndotreeToggle<CR>' vim.cmd 'nnoremap <F5> <cmd>UndotreeToggle<CR>'
vim.api.nvim_set_keymap('n', '<F5>', '<cmd>UndotreeToggle<CR>', { noremap = true, silent = true, }) vim.api.nvim_set_keymap('n', '<F5>', '<cmd>UndotreeToggle<CR>', { noremap = true, silent = true, })
end end
} }
-- use { -- shade.nvim: dim inactive window -- use { -- shade.nvim: dim inactive window
-- 'sunjon/shade.nvim', -- 'sunjon/shade.nvim',
-- config = function() -- config = function()
-- require'shade'.setup({ -- require'shade'.setup({
@ -299,7 +299,7 @@ return require('packer').startup({function()
-- }) -- })
-- end -- end
-- } -- }
use { -- nvim-autopairs: automatic quote pairing use { -- nvim-autopairs: automatic quote pairing
'windwp/nvim-autopairs', 'windwp/nvim-autopairs',
config = function() config = function()
-- If you want insert `(` after select function or method item -- If you want insert `(` after select function or method item
@ -317,13 +317,13 @@ return require('packer').startup({function()
end, end,
requires = 'hrsh7th/nvim-cmp', -- config requires requires = 'hrsh7th/nvim-cmp', -- config requires
} }
use { -- ts-autotag: automatically close html tags use { -- ts-autotag: automatically close html tags
'windwp/nvim-ts-autotag', 'windwp/nvim-ts-autotag',
config = function() config = function()
require('nvim-ts-autotag').setup() require('nvim-ts-autotag').setup()
end end
} }
use { -- endwise: auto add 'end' keyword when typing loops in various languages use { -- endwise: auto add 'end' keyword when typing loops in various languages
'RRethy/nvim-treesitter-endwise', 'RRethy/nvim-treesitter-endwise',
config = function() config = function()
require('nvim-treesitter.configs').setup { require('nvim-treesitter.configs').setup {
@ -336,10 +336,10 @@ return require('packer').startup({function()
use { -- cheat.sh integration use { -- cheat.sh integration
'dbeniamine/cheat.sh-vim', 'dbeniamine/cheat.sh-vim',
} }
use { -- nvim-align: Align text use { -- nvim-align: Align text
'RRethy/nvim-align', 'RRethy/nvim-align',
} }
use { -- comment.nvim: toggle comments - gb and gc use { -- comment.nvim: toggle comments - gb and gc
'numToStr/Comment.nvim', 'numToStr/Comment.nvim',
config = function() config = function()
require('Comment').setup { require('Comment').setup {
@ -365,63 +365,63 @@ return require('packer').startup({function()
} }
end end
} }
use { -- vim-illuminate: highlight other occurrences of the word under cursor use { -- vim-illuminate: highlight other occurrences of the word under cursor
'RRethy/vim-illuminate', 'RRethy/vim-illuminate',
} }
use { -- filetype.nvim: detect filetype a lot faster than stock neovim use { -- filetype.nvim: detect filetype a lot faster than stock neovim
'nathom/filetype.nvim', 'nathom/filetype.nvim',
} }
use { -- vim-rooter: cd to the root of a project when opening a file or folder use { -- vim-rooter: cd to the root of a project when opening a file or folder
'notjedi/nvim-rooter.lua', 'notjedi/nvim-rooter.lua',
} }
use { -- splitjoin: switch between single line and multiline versions of code - gJ and gS use { -- splitjoin: switch between single line and multiline versions of code - gJ and gS
'AndrewRadev/splitjoin.vim', 'AndrewRadev/splitjoin.vim',
} }
use { -- rhysd: clever-split: split calculation based on pane dimensions - CS or CleverSplit use { -- rhysd: clever-split: split calculation based on pane dimensions - CS or CleverSplit
'rhysd/clever-split.vim', 'rhysd/clever-split.vim',
config = function() config = function()
-- Map :CS to :CleverSplit -- Map :CS to :CleverSplit
vim.cmd 'command! CS CleverSplit' vim.cmd 'command! CS CleverSplit'
end end
} }
use { -- rhysd: textobj-anyblock: allow ab or ib instead of i( or a[ or any of the many other block selectors use { -- rhysd: textobj-anyblock: allow ab or ib instead of i( or a[ or any of the many other block selectors
'rhysd/vim-textobj-anyblock', 'rhysd/vim-textobj-anyblock',
requires = 'kana/vim-textobj-user', requires = 'kana/vim-textobj-user',
} }
-- use { -- rhysd: accelerated jk: make j and k move faster by pressing them a lot movement -- use { -- rhysd: accelerated jk: make j and k move faster by pressing them a lot movement
-- 'rhysd/accelerated-jk', -- 'rhysd/accelerated-jk',
-- } -- }
use { -- rhysd: committia: better commit editing window use { -- rhysd: committia: better commit editing window
'rhysd/committia.vim', 'rhysd/committia.vim',
} }
use { -- rhysd: conflict-marker: mark git conflicts - [x, ]x, co, ct, cb, cB, cn use { -- rhysd: conflict-marker: mark git conflicts - [x, ]x, co, ct, cb, cB, cn
'rhysd/conflict-marker.vim', 'rhysd/conflict-marker.vim',
} }
use { -- lewis6991: spellsitter: Spell checking in treesitter files use { -- lewis6991: spellsitter: Spell checking in treesitter files
'lewis6991/spellsitter.nvim', 'lewis6991/spellsitter.nvim',
config = function() config = function()
require('spellsitter').setup() require('spellsitter').setup()
end, end,
} }
use { -- lewis6991: spaceless: Strip trailing whitespace as you are editing use { -- lewis6991: spaceless: Strip trailing whitespace as you are editing
'lewis6991/spaceless.nvim', 'lewis6991/spaceless.nvim',
config = function() config = function()
require'spaceless'.setup() require'spaceless'.setup()
end, end,
} }
use { -- lewis6991: foldsigns: signcolumn signs on folded lines use { -- lewis6991: foldsigns: signcolumn signs on folded lines
'lewis6991/foldsigns.nvim', 'lewis6991/foldsigns.nvim',
config = function() config = function()
require('foldsigns').setup() require('foldsigns').setup()
end, end,
} }
use { -- lewis6991: cleanfold: folds have never looked better use { -- lewis6991: cleanfold: folds have never looked better
'lewis6991/cleanfold.nvim', 'lewis6991/cleanfold.nvim',
config = function() config = function()
require('cleanfold').setup() require('cleanfold').setup()
end, end,
} }
-- use { -- lewis6991: sattelite: small scroll bar -- use { -- lewis6991: sattelite: small scroll bar
-- 'lewis6991/satellite.nvim', -- 'lewis6991/satellite.nvim',
-- config = function() -- config = function()
-- require('satellite').setup() -- require('satellite').setup()
@ -431,16 +431,16 @@ return require('packer').startup({function()
-- ]] -- ]]
-- end, -- end,
-- } -- }
use { -- tpope: surround: surround text with quotes, parens, tags, and more - ys use { -- tpope: surround: surround text with quotes, parens, tags, and more - ys
'tpope/vim-surround', 'tpope/vim-surround',
} }
use { -- tpope: fugitive: git integration use { -- tpope: fugitive: git integration
'tpope/vim-fugitive', 'tpope/vim-fugitive',
} }
use { -- tpope: repeat: Repeatability for various tpope plugins use { -- tpope: repeat: Repeatability for various tpope plugins
'tpope/vim-repeat', 'tpope/vim-repeat',
} }
use { -- tpope: sleuth: automatically get info about files and apply it to vim (tabs vs spaces, etc) use { -- tpope: sleuth: automatically get info about files and apply it to vim (tabs vs spaces, etc)
'tpope/vim-sleuth', 'tpope/vim-sleuth',
} }
@ -456,4 +456,5 @@ config = {
compile_path = vim.fn.stdpath('config')..'/lua/packer_compiled.lua', compile_path = vim.fn.stdpath('config')..'/lua/packer_compiled.lua',
}}) }})
-- vim command to align all plugin descriptions: select all plugins in visual line, :'<,'>Align \(.\+use { -- .\+: \+\)\@<=[^ ][^:]\+$
-- vim:fdm=marker:fmr={,}:fdl=1:expandtab:tabstop=3:sw=3 -- vim:fdm=marker:fmr={,}:fdl=1:expandtab:tabstop=3:sw=3