[nvim] cleanup: plugin setup inside plugins.lua
move `require("<plugin>") to nvim/lua/plugins.lua
This commit is contained in:
parent
1634cc1679
commit
1552146cd7
@ -11,12 +11,3 @@ require("maps") -- ./lua/maps.lua
|
||||
require("statusline") -- ./lua/statusline.lua
|
||||
|
||||
require("polyjuice") -- ~/.local/src/polyjuice/lua/polyjuice.lua
|
||||
|
||||
-- auto complete
|
||||
require("plugin.cmp") -- ./lua/plugin/cmp.lua
|
||||
|
||||
-- treesitter
|
||||
require("plugin.treesitter") -- ./lua/plugin/treesitter.lua
|
||||
|
||||
-- commenting, done right
|
||||
require("plugin.comment") -- ./lua/plugin/comment.lua
|
||||
|
@ -27,7 +27,8 @@ return require("packer").startup(function()
|
||||
-- tree-sitter
|
||||
use {
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
run = ":TSUpdate"
|
||||
run = ":TSUpdate",
|
||||
config = function() require("plugin.treesitter") end
|
||||
}
|
||||
|
||||
-- fuzzy finder
|
||||
@ -75,11 +76,15 @@ return require("packer").startup(function()
|
||||
"hrsh7th/cmp-calc",
|
||||
"ray-x/cmp-treesitter",
|
||||
"f3fora/cmp-spell"
|
||||
}
|
||||
},
|
||||
config = function() require("plugin.cmp") end
|
||||
}
|
||||
|
||||
-- commenting, simplified
|
||||
use "numToStr/Comment.nvim"
|
||||
use {
|
||||
"numToStr/Comment.nvim",
|
||||
config = function() require("plugin.comment") end
|
||||
}
|
||||
|
||||
-- display colors directly in editor
|
||||
use {
|
||||
|
Reference in New Issue
Block a user