245 lines
3.5 KiB
Lua
245 lines
3.5 KiB
Lua
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({
|
|
|
|
--
|
|
-- dev
|
|
--
|
|
|
|
-- lspconfig
|
|
{
|
|
"neovim/nvim-lspconfig",
|
|
config = function()
|
|
require("plugins.lsp")
|
|
end,
|
|
},
|
|
|
|
-- nvim lint
|
|
{
|
|
"mfussenegger/nvim-lint",
|
|
config = function()
|
|
require("plugins.lint")
|
|
end,
|
|
},
|
|
|
|
-- cmp
|
|
{
|
|
"hrsh7th/nvim-cmp",
|
|
config = function()
|
|
require("plugins.cmp")
|
|
end,
|
|
dependencies = {
|
|
"hrsh7th/cmp-nvim-lsp",
|
|
"hrsh7th/cmp-vsnip",
|
|
"hrsh7th/cmp-buffer",
|
|
"hrsh7th/cmp-path",
|
|
"hrsh7th/cmp-nvim-lsp-signature-help",
|
|
},
|
|
},
|
|
|
|
-- snippets
|
|
{
|
|
"hrsh7th/vim-vsnip",
|
|
config = function()
|
|
require("plugins.vsnip")
|
|
end,
|
|
},
|
|
|
|
"rafamadriz/friendly-snippets",
|
|
|
|
-- autopairs
|
|
{
|
|
"windwp/nvim-autopairs",
|
|
config = function()
|
|
require("plugins.autopairs")
|
|
end,
|
|
},
|
|
|
|
-- treesitter
|
|
{
|
|
"nvim-treesitter/nvim-treesitter",
|
|
config = function()
|
|
require("plugins.treesitter")
|
|
end,
|
|
},
|
|
|
|
{
|
|
"RRethy/nvim-treesitter-textsubjects",
|
|
config = function()
|
|
require("plugins.treesitter-textobjects")
|
|
end,
|
|
},
|
|
|
|
-- formatter
|
|
{
|
|
"mhartington/formatter.nvim",
|
|
cmd = { "Format", "FormatWrite" },
|
|
config = function()
|
|
require("plugins.formatter")
|
|
end,
|
|
},
|
|
|
|
-- dap
|
|
{
|
|
"mfussenegger/nvim-dap",
|
|
config = function()
|
|
require("plugins.dap")
|
|
end,
|
|
dependencies = {
|
|
"leoluz/nvim-dap-go",
|
|
"mfussenegger/nvim-dap-python",
|
|
},
|
|
},
|
|
|
|
-- trouble
|
|
{
|
|
"folke/trouble.nvim",
|
|
cmd = { "Trouble", "TroubleToggle" },
|
|
config = function()
|
|
require("plugins.trouble")
|
|
end,
|
|
},
|
|
|
|
-- toggleterm
|
|
{
|
|
"akinsho/toggleterm.nvim",
|
|
cmd = { "ToggleTerm" },
|
|
config = function()
|
|
require("plugins.toggleterm")
|
|
end,
|
|
dependencies = {
|
|
"chomosuke/term-edit.nvim",
|
|
},
|
|
},
|
|
|
|
-- comment.nvim
|
|
{
|
|
"numToStr/Comment.nvim",
|
|
config = function()
|
|
require("plugins.comment")
|
|
end,
|
|
keys = {
|
|
"gc",
|
|
},
|
|
},
|
|
|
|
-- neogen
|
|
{
|
|
"danymat/neogen",
|
|
config = function()
|
|
require("plugins.neogen")
|
|
end,
|
|
},
|
|
|
|
-- neotest
|
|
{
|
|
"nvim-neotest/neotest",
|
|
config = function()
|
|
require("plugins.neotest")
|
|
end,
|
|
dependencies = {
|
|
"antoinemadec/FixCursorHold.nvim",
|
|
"nvim-neotest/neotest-python",
|
|
},
|
|
keys = {
|
|
"<leader>n",
|
|
},
|
|
},
|
|
|
|
-- refactoring
|
|
{
|
|
"ThePrimeagen/refactoring.nvim",
|
|
config = function()
|
|
require("plugins.refactoring")
|
|
end,
|
|
keys = {
|
|
"<leader>r",
|
|
},
|
|
},
|
|
|
|
--
|
|
-- git
|
|
--
|
|
|
|
"tpope/vim-fugitive",
|
|
"sindrets/diffview.nvim",
|
|
|
|
--
|
|
-- files (and more)
|
|
--
|
|
|
|
-- telescope
|
|
{
|
|
"nvim-telescope/telescope.nvim",
|
|
config = function()
|
|
require("plugins.telescope")
|
|
end,
|
|
dependencies = {
|
|
"nvim-lua/plenary.nvim",
|
|
},
|
|
},
|
|
|
|
-- nvim tree
|
|
{
|
|
"kyazdani42/nvim-tree.lua",
|
|
config = function()
|
|
require("plugins.nvim-tree")
|
|
end,
|
|
dependencies = {
|
|
"kyazdani42/nvim-web-devicons",
|
|
},
|
|
cmd = { "NvimTreeOpen", "NvimTreeToggle" },
|
|
},
|
|
|
|
--
|
|
-- looks
|
|
--
|
|
|
|
-- lualine
|
|
{
|
|
"hoob3rt/lualine.nvim",
|
|
config = function()
|
|
require("plugins.lualine")
|
|
end,
|
|
},
|
|
|
|
--
|
|
-- colorscheme
|
|
--
|
|
|
|
"crusoexia/vim-monokai",
|
|
"dylanaraps/wal.vim",
|
|
|
|
--
|
|
-- telekasten
|
|
--
|
|
|
|
{
|
|
"renerocksai/telekasten.nvim",
|
|
config = function()
|
|
require("plugins.telekasten")
|
|
end,
|
|
dependencies = {
|
|
"telescope.nvim",
|
|
},
|
|
key = {
|
|
"<leader>z",
|
|
},
|
|
ft = {
|
|
"markdown",
|
|
},
|
|
},
|
|
|
|
"renerocksai/calendar-vim",
|
|
})
|