start migrating to lazy plugin manager
This commit is contained in:
parent
51183ffd55
commit
738bcabefe
51
lua/my_lazy.lua
Normal file
51
lua/my_lazy.lua
Normal file
@ -0,0 +1,51 @@
|
|||||||
|
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
|
||||||
|
if not vim.loop.fs_stat(lazypath) then
|
||||||
|
vim.fn.system({
|
||||||
|
"git",
|
||||||
|
"clone",
|
||||||
|
"--filter=blob:none",
|
||||||
|
"--single-branch",
|
||||||
|
"https://github.com/folke/lazy.nvim.git",
|
||||||
|
lazypath,
|
||||||
|
})
|
||||||
|
end
|
||||||
|
vim.opt.runtimepath:prepend(lazypath)
|
||||||
|
|
||||||
|
|
||||||
|
local plugins = {
|
||||||
|
{
|
||||||
|
'mrjones2014/legendary.nvim',
|
||||||
|
config = function()
|
||||||
|
require('setup/my_legendary')
|
||||||
|
end
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'nvim-treesitter/nvim-treesitter',
|
||||||
|
build = ':TSUpdate',
|
||||||
|
config = function()
|
||||||
|
require('setup/treesitter')
|
||||||
|
end
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'nvim-telescope/telescope.nvim',
|
||||||
|
dependencies = {
|
||||||
|
{ 'nvim-lua/plenary.nvim' },
|
||||||
|
{ 'kyazdani42/nvim-web-devicons' },
|
||||||
|
},
|
||||||
|
config = function()
|
||||||
|
require('setup/telescope')
|
||||||
|
end
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'nvim-telescope/telescope-fzf-native.nvim',
|
||||||
|
build = 'cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_FLAGS="-target x86_64-w64-mingw32" -G Ninja && cmake --build build --config Release && cmake --install build --prefix build',
|
||||||
|
dependencies = {
|
||||||
|
'nvim-telescope/telescope.nvim',
|
||||||
|
},
|
||||||
|
config = function()
|
||||||
|
require('telescope').load_extension('fzf')
|
||||||
|
end
|
||||||
|
},
|
||||||
|
}
|
||||||
|
local opts = {}
|
||||||
|
require("lazy").setup(plugins, opts)
|
Loading…
x
Reference in New Issue
Block a user