219 lines
5.6 KiB
Lua
219 lines
5.6 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)
|
|
|
|
local lazy = require("lazy")
|
|
|
|
local plugins = {
|
|
{
|
|
"catppuccin/nvim",
|
|
name = "catppuccin",
|
|
priority = 1000,
|
|
},
|
|
{ "folke/tokyonight.nvim", priority = 1000, lazy = true },
|
|
{ "Mofiqul/dracula.nvim", priority = 1000, lazy = true },
|
|
{ "roflolilolmao/oceanic-next.nvim", priority = 1000, lazy = true },
|
|
{ "olimorris/onedarkpro.nvim", priority = 1000, lazy = true },
|
|
{ "NTBBloodbath/doom-one.nvim", priority = 1000, lazy = true },
|
|
{ "shaunsingh/moonlight.nvim", priority = 1000, lazy = true },
|
|
{ "kvrohit/mellow.nvim", priority = 1000, lazy = true },
|
|
-- telescope
|
|
{
|
|
"nvim-telescope/telescope.nvim",
|
|
version = "0.1.1",
|
|
dependencies = { "nvim-lua/plenary.nvim" },
|
|
},
|
|
{
|
|
"nvim-telescope/telescope-file-browser.nvim",
|
|
dependencies = { "nvim-telescope/telescope.nvim", "nvim-lua/plenary.nvim" },
|
|
},
|
|
{
|
|
"nvim-telescope/telescope-project.nvim",
|
|
dependencies = { "nvim-telescope/telescope.nvim", "nvim-lua/plenary.nvim" },
|
|
},
|
|
{
|
|
"nvim-telescope/telescope-fzf-native.nvim",
|
|
build = "make",
|
|
dependencies = { "nvim-telescope/telescope.nvim" },
|
|
},
|
|
{
|
|
"VonHeikemen/fine-cmdline.nvim",
|
|
dependencies = {
|
|
{ "MunifTanjim/nui.nvim" },
|
|
},
|
|
cmd = "FineCmdline",
|
|
config = function()
|
|
require("taken.plugins.lazy.cmdline")
|
|
end,
|
|
},
|
|
-- development
|
|
{
|
|
"github/copilot.vim",
|
|
event = "VimEnter",
|
|
},
|
|
{
|
|
"nvim-tree/nvim-tree.lua",
|
|
dependencies = { "nvim-tree/nvim-web-devicons" },
|
|
},
|
|
{ "nvim-treesitter/nvim-treesitter", build = ":TSUpdate" },
|
|
--lsp
|
|
{
|
|
"williamboman/mason.nvim",
|
|
build = function()
|
|
pcall(vim.cmd, "MasonUpdate")
|
|
end,
|
|
},
|
|
"neovim/nvim-lspconfig",
|
|
{
|
|
"williamboman/mason-lspconfig.nvim",
|
|
dependencies = { "williamboman/mason.nvim", "neovim/nvim-lspconfig" },
|
|
},
|
|
-- formatters and linters
|
|
"jose-elias-alvarez/null-ls.nvim",
|
|
{
|
|
"jayp0521/mason-null-ls.nvim",
|
|
dependencies = { "williamboman/mason.nvim", "jose-elias-alvarez/null-ls.nvim" },
|
|
},
|
|
-- completion
|
|
"hrsh7th/nvim-cmp",
|
|
"hrsh7th/cmp-nvim-lsp",
|
|
"hrsh7th/cmp-buffer",
|
|
"hrsh7th/cmp-path",
|
|
-- snippets
|
|
"L3MON4D3/LuaSnip",
|
|
"saadparwaiz1/cmp_luasnip",
|
|
"rafamadriz/friendly-snippets",
|
|
"onsails/lspkind.nvim",
|
|
{
|
|
"folke/trouble.nvim",
|
|
dependencies = { "nvim-tree/nvim-web-devicons" },
|
|
},
|
|
{
|
|
"iamcco/markdown-preview.nvim",
|
|
build = function()
|
|
vim.fn["mkdp#util#install"]()
|
|
end,
|
|
config = function()
|
|
vim.cmd([[
|
|
let g:mkdp_auto_close = 0
|
|
let g:mkdp_theme = 'dark'
|
|
]])
|
|
end,
|
|
ft = "markdown",
|
|
},
|
|
"numToStr/Comment.nvim",
|
|
{
|
|
"NeogitOrg/neogit",
|
|
dependencies = "nvim-lua/plenary.nvim",
|
|
config = function()
|
|
require("taken.plugins.lazy.neogit")
|
|
end,
|
|
cmd = "Neogit",
|
|
},
|
|
{
|
|
"sindrets/diffview.nvim",
|
|
cmd = "DiffviewOpen",
|
|
},
|
|
"windwp/nvim-autopairs",
|
|
{ "windwp/nvim-ts-autotag", dependencies = "nvim-treesitter" },
|
|
{
|
|
"lewis6991/gitsigns.nvim",
|
|
config = function()
|
|
require("gitsigns").setup({})
|
|
end,
|
|
},
|
|
{
|
|
"f-person/git-blame.nvim",
|
|
config = function()
|
|
vim.cmd([[
|
|
let g:gitblame_enabled = 1
|
|
]])
|
|
end,
|
|
},
|
|
-- useful plugins
|
|
{
|
|
"glepnir/dashboard-nvim",
|
|
event = "VimEnter",
|
|
dependencies = { "nvim-tree/nvim-web-devicons" },
|
|
},
|
|
{
|
|
"nvim-neorg/neorg",
|
|
build = ":Neorg sync-parsers",
|
|
dependencies = "nvim-lua/plenary.nvim",
|
|
config = function()
|
|
require("taken.plugins.lazy.neorg")
|
|
end,
|
|
cmd = "Neorg",
|
|
ft = "norg",
|
|
},
|
|
{
|
|
"NvChad/nvim-colorizer.lua",
|
|
config = function()
|
|
require("colorizer").setup({})
|
|
end,
|
|
},
|
|
"folke/which-key.nvim",
|
|
{
|
|
"nvim-lualine/lualine.nvim",
|
|
dependencies = { "nvim-tree/nvim-web-devicons" },
|
|
},
|
|
{
|
|
"akinsho/toggleterm.nvim",
|
|
version = "*",
|
|
config = function()
|
|
require("taken.plugins.lazy.toggleterm")
|
|
end,
|
|
cmd = "ToggleTerm",
|
|
},
|
|
"rcarriga/nvim-notify",
|
|
{
|
|
"akinsho/bufferline.nvim",
|
|
version = "*",
|
|
dependencies = "nvim-tree/nvim-web-devicons",
|
|
},
|
|
"TakenMC/presence.nvim",
|
|
{
|
|
"kylechui/nvim-surround",
|
|
version = "*",
|
|
config = function()
|
|
require("nvim-surround").setup({})
|
|
end,
|
|
},
|
|
{
|
|
"ObserverOfTime/nvimcord",
|
|
cmd = "NvimcordUpdate",
|
|
enabled = false,
|
|
config = function()
|
|
require("taken.plugins.lazy.nvimcord")
|
|
end,
|
|
},
|
|
"xiyaowong/transparent.nvim",
|
|
{
|
|
"jokajak/keyseer.nvim",
|
|
cmd = "KeySeer",
|
|
config = function()
|
|
require("taken.plugins.lazy.keyseer")
|
|
end,
|
|
},
|
|
}
|
|
|
|
local opts = {
|
|
dev = {
|
|
path = "~/git/nvim",
|
|
},
|
|
checker = {
|
|
enabled = true,
|
|
},
|
|
}
|
|
|
|
lazy.setup(plugins, opts)
|