split up the plugins into multiple files

This commit is contained in:
2024-04-08 17:56:18 +02:00
parent 84963d5026
commit 6151a7640a
16 changed files with 119 additions and 87 deletions

View File

@@ -1,9 +1,6 @@
function Color(color) function Color(color)
local catppuccin_colors = require('catppuccin.palettes').get_palette('mocha') local catppuccin_colors = require('catppuccin.palettes').get_palette('mocha')
color = color or "catppuccin-mocha"
vim.cmd.colorscheme(color)
vim.api.nvim_set_hl(0, "Normal", { bg = "none" }) vim.api.nvim_set_hl(0, "Normal", { bg = "none" })
vim.api.nvim_set_hl(0, "NormalNC", { bg = "none" }) vim.api.nvim_set_hl(0, "NormalNC", { bg = "none" })
vim.api.nvim_set_hl(0, "NormalFloat", { bg = "none" }) vim.api.nvim_set_hl(0, "NormalFloat", { bg = "none" })

View File

@@ -1 +0,0 @@
vim.keymap.set('n', '<leader>gs', vim.cmd.Git)

View File

@@ -1,2 +0,0 @@
print('Test')

View File

@@ -12,84 +12,4 @@ end
vim.opt.rtp:prepend(lazypath) vim.opt.rtp:prepend(lazypath)
require("lazy").setup({ require("lazy").setup("409.plugins")
{ "nvim-lua/plenary.nvim", priority = 100 },
{
"christoomey/vim-tmux-navigator",
lazy = false,
},
{
"nvim-telescope/telescope.nvim",
dependencies = { "nvim-lua/plenary.nvim" },
},
{
"catppuccin/nvim",
name = "catppuccin",
priority = 90
},
{
"nvim-treesitter/nvim-treesitter",
dependencies = {
"nvim-treesitter/nvim-tree-docs",
"JoosepAlviste/nvim-ts-context-commentstring",
}
},
{
"ThePrimeagen/harpoon",
branch = "harpoon2",
dependencies = { "nvim-lua/plenary.nvim" },
},
"onsails/lspkind.nvim",
"mbbill/undotree",
"tpope/vim-fugitive",
{
"nvim-lualine/lualine.nvim",
dependencies = { "nvim-tree/nvim-web-devicons" },
},
{ "williamboman/mason.nvim" },
"williamboman/mason-lspconfig.nvim",
-- LSP Support
"neovim/nvim-lspconfig",
-- Autocompletion
"hrsh7th/nvim-cmp",
"hrsh7th/cmp-nvim-lsp",
"hrsh7th/cmp-nvim-lsp-signature-help",
"hrsh7th/cmp-nvim-lua",
"hrsh7th/cmp-buffer",
"hrsh7th/cmp-path",
"hrsh7th/cmp-cmdline",
"L3MON4D3/LuaSnip",
"nvim-tree/nvim-web-devicons",
{
"danymat/neogen",
dependencies = { "nvim-treesitter/nvim-treesitter" },
},
{
"folke/todo-comments.nvim",
dependencies = { "nvim-lua/plenary.nvim" },
},
{
"folke/trouble.nvim",
dependencies = { "nvim-tree/nvim-web-devicons" },
},
{
"stevearc/conform.nvim",
},
{
"akinsho/flutter-tools.nvim",
dependencies = {
"nvim-lua/plenary.nvim",
"stevearc/dressing.nvim", -- optional for vim.ui.select
},
},
"RRethy/vim-illuminate",
"numToStr/Comment.nvim",
{
"utilyre/barbecue.nvim",
version = "*",
dependencies = {
"SmiteshP/nvim-navic",
"nvim-tree/nvim-web-devicons", -- optional dependency
},
},
})

View File

@@ -0,0 +1,11 @@
return {
"numToStr/Comment.nvim",
{
"danymat/neogen",
dependencies = { "nvim-treesitter/nvim-treesitter" },
},
{
"folke/todo-comments.nvim",
dependencies = { "nvim-lua/plenary.nvim" },
},
}

View File

@@ -0,0 +1,10 @@
return {
"hrsh7th/nvim-cmp",
"hrsh7th/cmp-nvim-lsp",
"hrsh7th/cmp-nvim-lsp-signature-help",
"hrsh7th/cmp-nvim-lua",
"hrsh7th/cmp-buffer",
"hrsh7th/cmp-path",
"hrsh7th/cmp-cmdline",
"L3MON4D3/LuaSnip",
}

View File

@@ -0,0 +1,6 @@
return {
{
"folke/trouble.nvim",
dependencies = { "nvim-tree/nvim-web-devicons" },
},
}

View File

@@ -0,0 +1,9 @@
return {
{
"akinsho/flutter-tools.nvim",
dependencies = {
"nvim-lua/plenary.nvim",
"stevearc/dressing.nvim", -- optional for vim.ui.select
},
},
}

View File

@@ -0,0 +1,5 @@
return {
{
"stevearc/conform.nvim",
},
}

13
lua/409/plugins/git.lua Normal file
View File

@@ -0,0 +1,13 @@
return {
{
"tpope/vim-fugitive",
keys = {
{
"<leader>gs",
vim.cmd.Git,
mode = "n",
desc = "Open Fugitive"
}
}
},
}

6
lua/409/plugins/lsp.lua Normal file
View File

@@ -0,0 +1,6 @@
return {
"onsails/lspkind.nvim",
{ "williamboman/mason.nvim" },
"williamboman/mason-lspconfig.nvim",
"neovim/nvim-lspconfig",
}

View File

@@ -0,0 +1,11 @@
return {
{
"nvim-telescope/telescope.nvim",
dependencies = { "nvim-lua/plenary.nvim" },
},
{
"ThePrimeagen/harpoon",
branch = "harpoon2",
dependencies = { "nvim-lua/plenary.nvim" },
},
}

View File

@@ -0,0 +1,14 @@
return {
{
"nvim-lualine/lualine.nvim",
dependencies = { "nvim-tree/nvim-web-devicons" },
},
{
"utilyre/barbecue.nvim",
version = "*",
dependencies = {
"SmiteshP/nvim-navic",
"nvim-tree/nvim-web-devicons", -- optional dependency
},
},
}

11
lua/409/plugins/theme.lua Normal file
View File

@@ -0,0 +1,11 @@
return {
{
"catppuccin/nvim",
name = "catppuccin",
lazy = false,
priority = 1000,
config = function()
vim.cmd.colorscheme('catppuccin-mocha')
end
},
}

View File

@@ -0,0 +1,9 @@
return {
{
"nvim-treesitter/nvim-treesitter",
dependencies = {
"nvim-treesitter/nvim-tree-docs",
"JoosepAlviste/nvim-ts-context-commentstring",
}
},
}

13
lua/409/plugins/util.lua Normal file
View File

@@ -0,0 +1,13 @@
return {
{
"nvim-lua/plenary.nvim",
lazy = true,
},
{
"christoomey/vim-tmux-navigator",
lazy = false,
},
"mbbill/undotree",
"nvim-tree/nvim-web-devicons",
"RRethy/vim-illuminate",
}