Modified config
This commit is contained in:
2
lua/taken/lazy/init.lua
Normal file
2
lua/taken/lazy/init.lua
Normal file
@@ -0,0 +1,2 @@
|
||||
require("taken.lazy.lazy")
|
||||
require("taken.lazy.pluginloader")
|
||||
144
lua/taken/lazy/lazy.lua
Normal file
144
lua/taken/lazy/lazy.lua
Normal file
@@ -0,0 +1,144 @@
|
||||
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({
|
||||
{
|
||||
"catppuccin/nvim",
|
||||
name = "catppuccin",
|
||||
priority = 1000,
|
||||
},
|
||||
{ "folke/tokyonight.nvim", priority = 1000 },
|
||||
{ "Mofiqul/dracula.nvim", priority = 1000 },
|
||||
{ "roflolilolmao/oceanic-next.nvim", priority = 1000 },
|
||||
{ "olimorris/onedarkpro.nvim", priority = 1000 },
|
||||
{ "NTBBloodbath/doom-one.nvim", priority = 1000 },
|
||||
{ "shaunsingh/moonlight.nvim", priority = 1000 },
|
||||
{ "kvrohit/mellow.nvim", priority = 1000 },
|
||||
-- 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" },
|
||||
},
|
||||
},
|
||||
-- development
|
||||
"github/copilot.vim",
|
||||
{
|
||||
"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,
|
||||
},
|
||||
"numToStr/Comment.nvim",
|
||||
{ "NeogitOrg/neogit", dependencies = "nvim-lua/plenary.nvim" },
|
||||
"sindrets/diffview.nvim",
|
||||
"windwp/nvim-autopairs",
|
||||
{ "windwp/nvim-ts-autotag", dependencies = "nvim-treesitter" },
|
||||
"lewis6991/gitsigns.nvim",
|
||||
"f-person/git-blame.nvim",
|
||||
-- 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",
|
||||
},
|
||||
{
|
||||
"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 = "*" },
|
||||
"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",
|
||||
"xiyaowong/transparent.nvim",
|
||||
"jokajak/keyseer.nvim",
|
||||
})
|
||||
17
lua/taken/lazy/pluginloader.lua
Normal file
17
lua/taken/lazy/pluginloader.lua
Normal file
@@ -0,0 +1,17 @@
|
||||
local configDir = vim.fn.stdpath("config")
|
||||
local configFiles = vim.fn.readdir(configDir .. "/lua/taken/plugins")
|
||||
local lspFiles = vim.fn.readdir(configDir .. "/lua/taken/plugins/lsp")
|
||||
|
||||
for _, file in pairs(configFiles) do
|
||||
if file:match("%.lua$") then
|
||||
local name = file:gsub("%.lua$", "")
|
||||
require("taken.plugins." .. name)
|
||||
end
|
||||
end
|
||||
|
||||
for _, file in pairs(lspFiles) do
|
||||
if file:match("%.lua$") then
|
||||
local name = file:gsub("%.lua$", "")
|
||||
require("taken.plugins.lsp." .. name)
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user