nvim/lua/plugins/init.lua
2025-08-16 23:53:52 +02:00

114 lines
2.8 KiB
Lua

return {
-- config for formatters
{
"stevearc/conform.nvim",
event = "BufWritePre",
opts = require "configs.conform",
},
-- config for LSP
{
"neovim/nvim-lspconfig",
config = function()
require "configs.lspconfig"
end,
},
-- treesitter, to have highlighting
{
"nvim-treesitter/nvim-treesitter",
opts = {
ensure_installed = {
"vim",
"lua",
"vimdoc",
"html",
"css",
"tsx",
"typescript",
"dart",
},
},
},
-- Tools for flutter
{
"akinsho/flutter-tools.nvim",
dependencies = {
"nvim-lua/plenary.nvim",
"stevearc/dressing.nvim",
},
config = true,
},
-- harness lsps' full power
{
"nvimdev/lspsaga.nvim",
event = "LspAttach",
config = function()
require("lspsaga").setup {}
end,
dependencies = {
"nvim-treesitter/nvim-treesitter", -- optional
"nvim-tree/nvim-web-devicons", -- optional
},
-- beautiful git
{
"SuperBo/fugit2.nvim",
build = false,
opts = {
width = 100,
},
dependencies = {
"MunifTanjim/nui.nvim",
"nvim-tree/nvim-web-devicons",
"nvim-lua/plenary.nvim",
{
"chrisgrieser/nvim-tinygit", -- optional: for Github PR view
dependencies = { "stevearc/dressing.nvim" },
},
},
cmd = { "Fugit2", "Fugit2Diff", "Fugit2Graph" },
keys = {
{ "<leader>F", mode = "n", "<cmd>Fugit2<cr>" },
},
},
},
-- Beautiful indent helpers
-- {
-- "lukas-reineke/indent-blankline.nvim",
-- version = false,
-- config = function(_, opts)
-- local highlight = {
-- "RainbowRed",
-- "RainbowYellow",
-- "RainbowBlue",
-- "RainbowOrange",
-- "RainbowGreen",
-- "RainbowViolet",
-- "RainbowCyan",
-- }
--
-- local hooks = require "ibl.hooks"
-- -- create the highlight groups in the highlight setup hook, so they are reset
-- -- every time the colorscheme changes
-- hooks.register(hooks.type.HIGHLIGHT_SETUP, function()
-- vim.api.nvim_set_hl(0, "RainbowRed", { fg = "#E06C75" })
-- vim.api.nvim_set_hl(0, "RainbowYellow", { fg = "#E5C07B" })
-- vim.api.nvim_set_hl(0, "RainbowBlue", { fg = "#61AFEF" })
-- vim.api.nvim_set_hl(0, "RainbowOrange", { fg = "#D19A66" })
-- vim.api.nvim_set_hl(0, "RainbowGreen", { fg = "#98C379" })
-- vim.api.nvim_set_hl(0, "RainbowViolet", { fg = "#C678DD" })
-- vim.api.nvim_set_hl(0, "RainbowCyan", { fg = "#56B6C2" })
-- end)
--
-- require("ibl").setup {
-- indent = { highlight = highlight },
-- scope = { enabled = true, show_start = true, highlight = highlight },
-- }
-- end,
-- },
}