nvim: add lots of plugins

This commit is contained in:
PowerUser64 2022-07-26 02:21:23 -07:00
parent 289109c247
commit 5ec4df6e75

View file

@ -14,7 +14,7 @@ return require('packer').startup({function()
-- TODO: Find a better way to organize this
-- impatient (needs to go early)
use { -- lewis6991: impatient: Make nvim load faster by caching them
use { -- lewis6991: impatient: Make nvim load faster by caching them - needs to load early
'lewis6991/impatient.nvim',
config = function()
require('impatient')
@ -22,7 +22,7 @@ return require('packer').startup({function()
}
-- Packer
use { -- packer
use { -- packer: plugin manager
'wbthomason/packer.nvim',
config = function()
-- Map :PS to :PackerSync
@ -37,7 +37,7 @@ return require('packer').startup({function()
require('blake.lsp').treesitter()
end,
}
use { -- onedark theme
use { -- onedark.nvim: onedark theme
'navarasu/onedark.nvim',
config = function()
-- vim.g.onedark_transparent_background = true
@ -48,7 +48,7 @@ return require('packer').startup({function()
]]
end
}
use { -- tokyonight theme
use { -- tokyonight.nvim: tokyonight theme
'folke/tokyonight.nvim',
config = function()
-- vim.g.onedark_transparent_background = true
@ -71,14 +71,14 @@ return require('packer').startup({function()
require('blake.other').lualine()
end,
}
use { -- nvim-tabline
use { -- nvim-tabline: batter looking tabline
'alvarosevilla95/luatab.nvim',
requires = 'kyazdani42/nvim-web-devicons',
config = function()
require('luatab').setup()
end
}
use { -- css color tag highlighter (ex: #FFB13B)
use { -- nvim-colorizer: css color tag highlighter (ex- #FFB13B)
'norcalli/nvim-colorizer.lua',
config = function()
vim.cmd 'command! COL ColorizerToggle'
@ -87,9 +87,9 @@ return require('packer').startup({function()
-- IDE features
---- LSP
use { -- lspinstall + lspconfig
use { -- lspinstall: language server installer, (lspconfig is here too)
'williamboman/nvim-lsp-installer',
{ -- lspconfig
{ -- lspconfig: default language server configurations
'neovim/nvim-lspconfig',
config = function()
require('blake.lsp').lspinstall()
@ -97,7 +97,7 @@ return require('packer').startup({function()
end
}
}
use { -- commentstring based on context from treesitter
use { -- ts-context-commentstring: set commentstring based on context from treesitter (two langs in one file)
'JoosepAlviste/nvim-ts-context-commentstring',
requires = 'nvim-treesitter/nvim-treesitter',
config = function()
@ -109,7 +109,7 @@ return require('packer').startup({function()
}
end,
}
use { -- compe
use { -- cmp: completion menu
'hrsh7th/nvim-cmp',
config = function()
require('blake.lsp').cmp()
@ -128,17 +128,23 @@ return require('packer').startup({function()
'hrsh7th/cmp-emoji',
},
}
use { -- luasnip (snippits)
use { -- luasnip: snippits plugin
'L3MON4D3/LuaSnip',
config = function()
require("luasnip.loaders.from_vscode").lazy_load()
end
}
use { -- function parameter previews
use { -- friendly-snippets: lots of good snippits
'rafamadriz/friendly-snippets'
}
use { -- lsp_signature: function parameter previews
'ray-x/lsp_signature.nvim',
after = 'nvim-lspconfig',
config = function()
require('blake.lsp').signature()
end,
}
use { -- symbols-outline: treesitter-based document outline (:SO)
use { -- symbols-outline: treesitter-based document outline (SO)
'simrat39/symbols-outline.nvim',
config = function()
vim.cmd 'command! SO SymbolsOutline'
@ -159,7 +165,7 @@ return require('packer').startup({function()
require('blake.dap').nvim_dap()
end
}
-- use { -- DAP adapter installer
-- use { -- dap-buddy: DAP adapter installer
-- 'Pocco81/dap-buddy.nvim',
-- config = function()
-- require('blake.dap').dap_buddy()
@ -171,7 +177,7 @@ return require('packer').startup({function()
require("nvim-dap-virtual-text").setup()
end
}
use { -- a UI for nvim-dap (easy access to info)
use { -- nvim-dap-ui: a UI for nvim-dap
'rcarriga/nvim-dap-ui',
config = function()
require('blake.dap').dap_ui()
@ -186,7 +192,7 @@ return require('packer').startup({function()
require('blake.other').telescope()
end
}
use { -- git integration
use { -- gitsigns: git integration
'lewis6991/gitsigns.nvim',
requires = {
'nvim-lua/plenary.nvim'
@ -195,37 +201,37 @@ return require('packer').startup({function()
require('blake.other').gitsigns()
end,
}
-- use { -- file manager
-- use { -- nvim-tree: file manager
-- 'kyazdani42/nvim-tree.lua',
-- requires = 'kyazdani42/nvim-web-devicons',
-- config = function()
-- require('blake.other').nvimtree()
-- end
-- }
use { -- terminal
use { -- toggleterm: terminal
'akinsho/toggleterm.nvim',
tag = 'v1.*',
config = function()
require('blake.other').toggleterm()
end
}
use { -- Smooth Scrolling
use { -- neoscroll: Smooth Scrolling
'karb94/neoscroll.nvim',
config = function()
require('blake.other').neoscroll()
end,
}
use { -- automatic session management
use { -- auto-session: automatic session management
'rmagatti/auto-session',
config = function()
require('blake.other').autosession()
end
}
use { -- Markdown preview
use { -- glow: Markdown preview
'ellisonleao/glow.nvim',
ft = { 'md', 'markdown', }
}
use { -- Zen mode (:ZenMode or :ZM)
use { -- zen mode: (ZenMode or ZM)
"folke/zen-mode.nvim",
config = function()
require('blake.other').zenmode()
@ -233,7 +239,7 @@ return require('packer').startup({function()
vim.cmd 'inoremap <F10> <cmd>ZenMode<CR>'
end,
}
-- use { -- dim text outside paragraph or function
-- use { -- twilight.nvim: dim text outside paragraph or function
-- 'folke/twilight.nvim',
-- config = function()
-- vim.cmd 'command! TW Twilight'
@ -257,7 +263,7 @@ return require('packer').startup({function()
-- }
-- Conveniences
use { -- sort motion (gs)
use { -- sort motion: (gs)
'christoomey/vim-sort-motion',
config = function()
vim.cmd [[
@ -267,19 +273,19 @@ return require('packer').startup({function()
end,
requires = 'navicore/vissort.vim', -- config requires
}
use { -- Ghost: Web browser integration
use { -- ghost: Web browser integration
'raghur/vim-ghost',
opt = true,
cmd = {'GhostStart', 'GhostInstall', 'GhostStop', 'GhostSync', 'GhostToggleSync',},
}
use { -- Undo tree
use { -- undotree: visual undo tree
'mbbill/undotree',
config = function()
vim.cmd 'nnoremap <F5> <cmd>UndotreeToggle<CR>'
vim.api.nvim_set_keymap('n', '<F5>', '<cmd>UndotreeToggle<CR>', { noremap = true, silent = true, })
end
}
-- use { -- Dim inactive window
-- use { -- shade.nvim: dim inactive window
-- 'sunjon/shade.nvim',
-- config = function()
-- require'shade'.setup({
@ -293,7 +299,7 @@ return require('packer').startup({function()
-- })
-- end
-- }
use { -- Quote pairing
use { -- nvim-autopairs: automatic quote pairing
'windwp/nvim-autopairs',
config = function()
-- If you want insert `(` after select function or method item
@ -317,7 +323,7 @@ return require('packer').startup({function()
require('nvim-ts-autotag').setup()
end
}
use { -- endwise: auto add 'end' keyword
use { -- endwise: auto add 'end' keyword when typing loops in various languages
'RRethy/nvim-treesitter-endwise',
config = function()
require('nvim-treesitter.configs').setup {
@ -327,16 +333,13 @@ return require('packer').startup({function()
}
end
}
use { -- accelerated jk movement
'rhysd/accelerated-jk'
}
use { -- cheat.sh integration
'dbeniamine/cheat.sh-vim',
}
use { -- nvim-align: Align text
'RRethy/nvim-align'
'RRethy/nvim-align',
}
use { -- Comments (gb and gc)
use { -- comment.nvim: toggle comments - gb and gc
'numToStr/Comment.nvim',
config = function()
require('Comment').setup {
@ -362,10 +365,36 @@ return require('packer').startup({function()
}
end
}
use { -- vim-illuminate: highlight other occurrences of the word under cursor
'RRethy/vim-illuminate',
}
use { -- filetype.nvim: detect filetype a lot faster than stock neovim
'nathom/filetype.nvim',
}
use { -- vim-rooter: cd to the root of a project when opening a file or folder
'notjedi/nvim-rooter.lua',
}
use { -- splitjoin: switch between single line and multiline versions of code - gJ and gS
'AndrewRadev/splitjoin.vim',
}
use { -- rhysd: clever-split: split calculation based on pane dimensions - CS or CleverSplit
'rhysd/clever-split.vim',
config = function()
-- Map :CS to :CleverSplit
vim.cmd 'command! CS CleverSplit'
end
}
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',
requires = 'kana/vim-textobj-user',
}
-- use { -- rhysd: accelerated jk: make j and k move faster by pressing them a lot movement
-- 'rhysd/accelerated-jk',
-- }
use { -- rhysd: committia: better commit editing window
'rhysd/committia.vim',
}
use { -- rhysd: conflict-marker: mark git conflicts - [x ]x
use { -- rhysd: conflict-marker: mark git conflicts - [x, ]x, co, ct, cb, cB, cn
'rhysd/conflict-marker.vim',
}
use { -- lewis6991: spellsitter: Spell checking in treesitter files
@ -402,16 +431,16 @@ return require('packer').startup({function()
-- ]]
-- end,
-- }
use { -- tpope: surround
'tpope/vim-surround'
use { -- tpope: surround: surround text with quotes, parens, tags, and more - ys
'tpope/vim-surround',
}
use { -- tpope: git integration
'tpope/vim-fugitive'
use { -- tpope: fugitive: git integration
'tpope/vim-fugitive',
}
use { -- tpope: Repeatability for various tpope plugins
use { -- tpope: repeat: Repeatability for various tpope plugins
'tpope/vim-repeat',
}
use { -- tpope: 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',
}