nvim: Move plugin configuration files to after/plugin
Now that neovim runtime can also source lua files from traditional vim runtime directories like after/plugin/ftplugin etc, move all plugin configuration files to after/plugin.
This commit is contained in:
parent
ca9e0d1754
commit
108630d19c
|
@ -5,10 +5,7 @@ vim.cmd 'packadd packer.nvim'
|
||||||
local init = function ()
|
local init = function ()
|
||||||
use {'wbthomason/packer.nvim', opt = true}
|
use {'wbthomason/packer.nvim', opt = true}
|
||||||
-- Vertical Motion
|
-- Vertical Motion
|
||||||
use {
|
use 'justinmk/vim-sneak'
|
||||||
'justinmk/vim-sneak',
|
|
||||||
config = "require('modules.sneak')"
|
|
||||||
}
|
|
||||||
-- Search
|
-- Search
|
||||||
use {
|
use {
|
||||||
'junegunn/fzf',
|
'junegunn/fzf',
|
||||||
|
@ -19,25 +16,13 @@ local init = function ()
|
||||||
use 'lambdalisue/reword.vim'
|
use 'lambdalisue/reword.vim'
|
||||||
use 'bronson/vim-visual-star-search'
|
use 'bronson/vim-visual-star-search'
|
||||||
-- Remove extraneous whitespace when edit mode is exited
|
-- Remove extraneous whitespace when edit mode is exited
|
||||||
use {
|
use 'ntpeters/vim-better-whitespace'
|
||||||
'ntpeters/vim-better-whitespace',
|
|
||||||
config = "require('modules.better-whitespace')"
|
|
||||||
}
|
|
||||||
-- Manage Project sessions
|
-- Manage Project sessions
|
||||||
use {
|
use 'thaerkh/vim-workspace'
|
||||||
'thaerkh/vim-workspace',
|
|
||||||
config = "require('modules.workspace')"
|
|
||||||
}
|
|
||||||
-- For autocompletion
|
-- For autocompletion
|
||||||
use {
|
use 'hrsh7th/nvim-compe'
|
||||||
'hrsh7th/nvim-compe',
|
|
||||||
config = "require('modules.completion')"
|
|
||||||
}
|
|
||||||
-- Git support
|
-- Git support
|
||||||
use {
|
use 'mhinz/vim-signify'
|
||||||
'mhinz/vim-signify',
|
|
||||||
config = "require('modules.signify')"
|
|
||||||
}
|
|
||||||
use 'tpope/vim-fugitive'
|
use 'tpope/vim-fugitive'
|
||||||
use 'rhysd/git-messenger.vim'
|
use 'rhysd/git-messenger.vim'
|
||||||
use 'whiteinge/diffconflicts'
|
use 'whiteinge/diffconflicts'
|
||||||
|
@ -50,21 +35,12 @@ local init = function ()
|
||||||
cmd = 'Neoformat'
|
cmd = 'Neoformat'
|
||||||
}
|
}
|
||||||
-- Run things async
|
-- Run things async
|
||||||
use {
|
use 'hauleth/asyncdo.vim'
|
||||||
'hauleth/asyncdo.vim',
|
|
||||||
config = "require('modules.asyncdo')"
|
|
||||||
}
|
|
||||||
-- Quickfix
|
-- Quickfix
|
||||||
use 'yssl/QFEnter'
|
use 'yssl/QFEnter'
|
||||||
use 'ronakg/quickr-cscope.vim'
|
use 'ronakg/quickr-cscope.vim'
|
||||||
use {
|
use 'milkypostman/vim-togglelist'
|
||||||
'milkypostman/vim-togglelist',
|
use 'chengzeyi/fzf-preview.vim'
|
||||||
config = "require('modules.togglelist')"
|
|
||||||
}
|
|
||||||
use {
|
|
||||||
'chengzeyi/fzf-preview.vim',
|
|
||||||
config = "require('modules.fzf-preview')"
|
|
||||||
}
|
|
||||||
-- Text Object plugins
|
-- Text Object plugins
|
||||||
use {
|
use {
|
||||||
'wellle/targets.vim',
|
'wellle/targets.vim',
|
||||||
|
@ -89,22 +65,13 @@ local init = function ()
|
||||||
-- Directory viewer
|
-- Directory viewer
|
||||||
use 'justinmk/vim-dirvish'
|
use 'justinmk/vim-dirvish'
|
||||||
-- Show leader key bindings
|
-- Show leader key bindings
|
||||||
use {
|
use 'liuchengxu/vim-which-key'
|
||||||
'liuchengxu/vim-which-key',
|
|
||||||
config = "require('modules.which_key')"
|
|
||||||
}
|
|
||||||
-- Toggle terminal
|
-- Toggle terminal
|
||||||
use {
|
use 'voldikss/vim-floaterm'
|
||||||
'voldikss/vim-floaterm',
|
|
||||||
config = "require('modules.floaterm')"
|
|
||||||
}
|
|
||||||
-- Take care of sudo
|
-- Take care of sudo
|
||||||
use 'lambdalisue/suda.vim'
|
use 'lambdalisue/suda.vim'
|
||||||
-- Alignment
|
-- Alignment
|
||||||
use {
|
use 'junegunn/vim-easy-align'
|
||||||
'junegunn/vim-easy-align',
|
|
||||||
config = "require('modules.easyalign')"
|
|
||||||
}
|
|
||||||
use 'Rasukarusan/nvim-block-paste'
|
use 'Rasukarusan/nvim-block-paste'
|
||||||
use 'nvim-lua/plenary.nvim'
|
use 'nvim-lua/plenary.nvim'
|
||||||
use {
|
use {
|
||||||
|
@ -145,7 +112,6 @@ local init = function ()
|
||||||
-- For statusline
|
-- For statusline
|
||||||
use {
|
use {
|
||||||
'glepnir/galaxyline.nvim',
|
'glepnir/galaxyline.nvim',
|
||||||
config = "require('modules.statusline')",
|
|
||||||
requires = { 'kyazdani42/nvim-web-devicons' }
|
requires = { 'kyazdani42/nvim-web-devicons' }
|
||||||
}
|
}
|
||||||
-- Marks and registers
|
-- Marks and registers
|
||||||
|
|
Loading…
Reference in a new issue