feat: added 2 plugins

This commit is contained in:
alzalia1 2025-08-16 23:53:52 +02:00
parent eaf6e0d084
commit 4a5f39bd74
6 changed files with 90 additions and 0 deletions

View file

@ -6,6 +6,7 @@ local servers = {
cssld = {},
clangd = {},
ts_ls = {},
dartls = {},
}
for name, opts in pairs(servers) do

View file

@ -0,0 +1,10 @@
local highlight = {
"CatppuccinRed",
"CatppuccinPeach",
"CatppuccinYellow",
"CatppuccinGreen",
"CatppuccinBlue",
"CatppuccinPurple",
}
return highlight

View file

@ -7,3 +7,5 @@ map("n", ";", ":", { desc = "CMD enter command mode" })
-- i then j&k to escape
map("i", "jk", "<ESC>")
map("n", "<leader>a", "<cmd>Lspsaga code_action<CR>", { desc = "Display code actions" })

View file

@ -1,4 +1,5 @@
return {
-- config for formatters
{
"stevearc/conform.nvim",
@ -40,4 +41,74 @@ return {
},
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,
-- },
}