initial commit
This commit is contained in:
commit
9784dfe498
12 changed files with 329 additions and 0 deletions
61
lua/plugins.lua
Normal file
61
lua/plugins.lua
Normal file
|
|
@ -0,0 +1,61 @@
|
|||
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",
|
||||
"https://github.com/folke/lazy.nvim.git",
|
||||
"--branch=stable", -- latest stable release
|
||||
lazypath,
|
||||
})
|
||||
end
|
||||
|
||||
vim.opt.rtp:prepend(lazypath)
|
||||
|
||||
require("lazy").setup({
|
||||
{
|
||||
'nvim-telescope/telescope.nvim',
|
||||
tag = '0.1.2',
|
||||
dependencies = { 'nvim-lua/plenary.nvim' }
|
||||
},
|
||||
|
||||
{
|
||||
"nvim-treesitter/nvim-treesitter", build = ":TSUpdate"
|
||||
},
|
||||
{
|
||||
'VonHeikemen/lsp-zero.nvim',
|
||||
branch = 'v2.x',
|
||||
dependencies = {
|
||||
-- LSP Support
|
||||
{ 'neovim/nvim-lspconfig' }, -- Required
|
||||
{ -- Optional
|
||||
'williamboman/mason.nvim',
|
||||
build = function()
|
||||
pcall(vim.cmd, 'MasonUpdate')
|
||||
end,
|
||||
},
|
||||
{ 'williamboman/mason-lspconfig.nvim' }, -- Optional
|
||||
|
||||
-- Autocompletion
|
||||
{ 'hrsh7th/nvim-cmp' }, -- Required
|
||||
{ 'hrsh7th/cmp-nvim-lsp' }, -- Required
|
||||
{ 'L3MON4D3/LuaSnip' }, -- Required
|
||||
{ 'nvim-cmp' },
|
||||
{ 'github/copilot.vim' },
|
||||
{ 'mhinz/vim-startify' },
|
||||
-- themes
|
||||
{ 'gruvbox-community/gruvbox' },
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
}, opts)
|
||||
|
||||
|
||||
local files = vim.split(vim.fn.globpath(vim.fn.stdpath('config') .. '/lua/plugin', '*.lua', true), '\n')
|
||||
|
||||
for _, f in ipairs(files) do
|
||||
local name = vim.fn.fnamemodify(f, ':t:r')
|
||||
require('plugin.' .. name)
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue