nvim.config/lua/plugins.lua

89 lines
2.1 KiB
Lua

-- bootstrap lazy
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
if not (vim.uv or 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)
return require('lazy').setup {
spec = {
{
'rose-pine/neovim',
name = 'rose-pine',
config = function() vim.cmd [[colorscheme rose-pine-moon]] end
},
{
"L3MON4D3/LuaSnip",
version = "v2.*",
build = "make install_jsregexp"
},
'saadparwaiz1/cmp_luasnip',
'hrsh7th/cmp-nvim-lsp',
'hrsh7th/cmp-buffer',
'hrsh7th/cmp-path',
'hrsh7th/cmp-cmdline',
{
'hrsh7th/nvim-cmp',
config = function() require 'cmp-setup' end
},
"lukas-reineke/cmp-under-comparator",
'folke/neodev.nvim',
{ 'neovim/nvim-lspconfig', config = function() require 'lsp-setup' end, after = 'neodev.nvim' },
'simrat39/rust-tools.nvim',
'mfussenegger/nvim-dap',
{
'numToStr/Comment.nvim',
config = function()
require('Comment').setup()
end
},
{
"NeogitOrg/neogit",
version = "v0.0.1",
dependencies = {
"nvim-lua/plenary.nvim", -- required
"nvim-telescope/telescope.nvim", -- optional
"sindrets/diffview.nvim", -- optional
},
config = true,
},
'lambdalisue/suda.vim',
{
"kylechui/nvim-surround",
version = "*", -- Use for stability; omit to use `main` branch for the latest features
config = function()
require("nvim-surround").setup({})
end
},
{
'nvim-treesitter/nvim-treesitter',
config = function() require 'nvim-treesitter.configs'.setup({}) end,
build = function()
local ts_update = require('nvim-treesitter.install').update({ with_sync = true })
ts_update()
end,
},
{
'theblob42/drex.nvim',
dependencies = 'kyazdani42/nvim-web-devicons',
config = function()
vim.keymap.set('n', '<F2>', ':DrexDrawerToggle<CR>')
end
},
{
"klen/nvim-test",
config = function()
require('nvim-test').setup()
end
},
'direnv/direnv.vim'
}
}