refactor nvim lazy plugins
This commit is contained in:
parent
87e47d17df
commit
082a413cf2
@ -18,60 +18,5 @@ if not vim.loop.fs_stat(lazypath) then
|
|||||||
end
|
end
|
||||||
vim.opt.rtp:prepend(lazypath)
|
vim.opt.rtp:prepend(lazypath)
|
||||||
|
|
||||||
require("lazy").setup({
|
require("lazy").setup("lazy-plugins")
|
||||||
-- Sensible defaults
|
|
||||||
"tpope/vim-sensible",
|
|
||||||
|
|
||||||
-- Plenary
|
|
||||||
"nvim-lua/plenary.nvim",
|
|
||||||
|
|
||||||
-- Indent line
|
|
||||||
"lukas-reineke/indent-blankline.nvim",
|
|
||||||
|
|
||||||
-- CSS color
|
|
||||||
"ap/vim-css-color",
|
|
||||||
|
|
||||||
-- Symlink follow
|
|
||||||
--"aymericbeaumet/vim-symlink",
|
|
||||||
|
|
||||||
-- Git
|
|
||||||
"lewis6991/gitsigns.nvim",
|
|
||||||
|
|
||||||
-- Lastplace
|
|
||||||
"farmergreg/vim-lastplace",
|
|
||||||
|
|
||||||
-- Autopair
|
|
||||||
{
|
|
||||||
"windwp/nvim-autopairs",
|
|
||||||
event = "InsertEnter",
|
|
||||||
opts = {},
|
|
||||||
},
|
|
||||||
|
|
||||||
-- Tagbar
|
|
||||||
"preservim/tagbar",
|
|
||||||
|
|
||||||
-- Color scheme
|
|
||||||
"navarasu/onedark.nvim",
|
|
||||||
|
|
||||||
-- Surround
|
|
||||||
"tpope/vim-surround",
|
|
||||||
|
|
||||||
-- Barbar (tabline bar)
|
|
||||||
{
|
|
||||||
"romgrk/barbar.nvim",
|
|
||||||
dependencies = {
|
|
||||||
'lewis6991/gitsigns.nvim',
|
|
||||||
'nvim-tree/nvim-web-devicons',
|
|
||||||
},
|
|
||||||
},
|
|
||||||
|
|
||||||
-- Dashboard (start screen)
|
|
||||||
{
|
|
||||||
'goolord/alpha-nvim',
|
|
||||||
dependencies = { 'nvim-tree/nvim-web-devicons' },
|
|
||||||
config = function ()
|
|
||||||
require'alpha'.setup(require'alpha.themes.startify'.config)
|
|
||||||
end,
|
|
||||||
},
|
|
||||||
})
|
|
||||||
|
|
||||||
|
|||||||
8
nvim/.config/nvim/lua/lazy-plugins/alpha.lua
Normal file
8
nvim/.config/nvim/lua/lazy-plugins/alpha.lua
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
-- Alpha (start screen/dashboard)
|
||||||
|
return {
|
||||||
|
"goolord/alpha-nvim",
|
||||||
|
dependencies = { "nvim-tree/nvim-web-devicons" },
|
||||||
|
config = function ()
|
||||||
|
require"alpha".setup(require"alpha.themes.startify".config)
|
||||||
|
end,
|
||||||
|
}
|
||||||
6
nvim/.config/nvim/lua/lazy-plugins/autopairs.lua
Normal file
6
nvim/.config/nvim/lua/lazy-plugins/autopairs.lua
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
-- Autopairs
|
||||||
|
return {
|
||||||
|
"windwp/nvim-autopairs",
|
||||||
|
event = "InsertEnter",
|
||||||
|
opts = {},
|
||||||
|
}
|
||||||
8
nvim/.config/nvim/lua/lazy-plugins/barbar.lua
Normal file
8
nvim/.config/nvim/lua/lazy-plugins/barbar.lua
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
-- Barbar (tabline bar)
|
||||||
|
return {
|
||||||
|
"romgrk/barbar.nvim",
|
||||||
|
dependencies = {
|
||||||
|
"lewis6991/gitsigns.nvim",
|
||||||
|
"nvim-tree/nvim-web-devicons",
|
||||||
|
},
|
||||||
|
}
|
||||||
6
nvim/.config/nvim/lua/lazy-plugins/css-color.lua
Normal file
6
nvim/.config/nvim/lua/lazy-plugins/css-color.lua
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
-- CSS color
|
||||||
|
return {
|
||||||
|
"ap/vim-css-color",
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
7
nvim/.config/nvim/lua/lazy-plugins/git-signs.lua
Normal file
7
nvim/.config/nvim/lua/lazy-plugins/git-signs.lua
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
-- Git signs
|
||||||
|
return {
|
||||||
|
"lewis6991/gitsigns.nvim",
|
||||||
|
config = function ()
|
||||||
|
require("gitsigns").setup()
|
||||||
|
end
|
||||||
|
}
|
||||||
4
nvim/.config/nvim/lua/lazy-plugins/indent-blankline.lua
Normal file
4
nvim/.config/nvim/lua/lazy-plugins/indent-blankline.lua
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
-- Indent blankline
|
||||||
|
return {
|
||||||
|
"lukas-reineke/indent-blankline.nvim",
|
||||||
|
}
|
||||||
5
nvim/.config/nvim/lua/lazy-plugins/lastplace.lua
Normal file
5
nvim/.config/nvim/lua/lazy-plugins/lastplace.lua
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
-- Lastplace
|
||||||
|
return {
|
||||||
|
"farmergreg/vim-lastplace",
|
||||||
|
}
|
||||||
|
|
||||||
4
nvim/.config/nvim/lua/lazy-plugins/plenary.lua
Normal file
4
nvim/.config/nvim/lua/lazy-plugins/plenary.lua
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
-- Plenary
|
||||||
|
return {
|
||||||
|
"nvim-lua/plenary.nvim",
|
||||||
|
}
|
||||||
4
nvim/.config/nvim/lua/lazy-plugins/surround.lua
Normal file
4
nvim/.config/nvim/lua/lazy-plugins/surround.lua
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
-- Surround
|
||||||
|
return {
|
||||||
|
"tpope/vim-surround",
|
||||||
|
}
|
||||||
4
nvim/.config/nvim/lua/lazy-plugins/tagbar.lua
Normal file
4
nvim/.config/nvim/lua/lazy-plugins/tagbar.lua
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
-- Tagbar
|
||||||
|
return {
|
||||||
|
"preservim/tagbar",
|
||||||
|
}
|
||||||
25
nvim/.config/nvim/lua/lazy-plugins/telescope.lua
Normal file
25
nvim/.config/nvim/lua/lazy-plugins/telescope.lua
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
-- Telescope
|
||||||
|
return {
|
||||||
|
"nvim-telescope/telescope.nvim",
|
||||||
|
dependencies = {
|
||||||
|
"nvim-lua/plenary.nvim",
|
||||||
|
},
|
||||||
|
keys = {
|
||||||
|
{
|
||||||
|
"<leader>fp",
|
||||||
|
function() require("telescope.builtin").find_files({ cwd = require("lazy.core.config").options.root }) end,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"<leader>ff",
|
||||||
|
function() require('telescope.builtin').live_grep() end,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"<leader>fb",
|
||||||
|
function() require('telescope.builtin').buffers() end,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"<leader>fh",
|
||||||
|
function() require('telescope.builtin').help_tags() end,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
4
nvim/.config/nvim/lua/lazy-plugins/theme-onedark.lua
Normal file
4
nvim/.config/nvim/lua/lazy-plugins/theme-onedark.lua
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
-- Onedark theme
|
||||||
|
return {
|
||||||
|
"navarasu/onedark.nvim",
|
||||||
|
}
|
||||||
4
nvim/.config/nvim/lua/lazy-plugins/vim-sensible.lua
Normal file
4
nvim/.config/nvim/lua/lazy-plugins/vim-sensible.lua
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
-- Sensible defaults
|
||||||
|
return {
|
||||||
|
"tpope/vim-sensible",
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user