feat: added 2 plugins
This commit is contained in:
parent
eaf6e0d084
commit
4a5f39bd74
6 changed files with 90 additions and 0 deletions
2
init.lua
2
init.lua
|
|
@ -35,3 +35,5 @@ require "nvchad.autocmds"
|
||||||
vim.schedule(function()
|
vim.schedule(function()
|
||||||
require "mappings"
|
require "mappings"
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
local saga = "lspsaga"
|
||||||
|
|
|
||||||
|
|
@ -11,15 +11,19 @@
|
||||||
"dressing.nvim": { "branch": "master", "commit": "2d7c2db2507fa3c4956142ee607431ddb2828639" },
|
"dressing.nvim": { "branch": "master", "commit": "2d7c2db2507fa3c4956142ee607431ddb2828639" },
|
||||||
"flutter-tools.nvim": { "branch": "main", "commit": "65b7399804315a1160933b64292d3c5330aa4e9f" },
|
"flutter-tools.nvim": { "branch": "main", "commit": "65b7399804315a1160933b64292d3c5330aa4e9f" },
|
||||||
"friendly-snippets": { "branch": "main", "commit": "572f5660cf05f8cd8834e096d7b4c921ba18e175" },
|
"friendly-snippets": { "branch": "main", "commit": "572f5660cf05f8cd8834e096d7b4c921ba18e175" },
|
||||||
|
"fugit2.nvim": { "branch": "main", "commit": "48ceeb550a517e8fd28de4f72a313940a4777a71" },
|
||||||
"gitsigns.nvim": { "branch": "main", "commit": "6e3c66548035e50db7bd8e360a29aec6620c3641" },
|
"gitsigns.nvim": { "branch": "main", "commit": "6e3c66548035e50db7bd8e360a29aec6620c3641" },
|
||||||
"indent-blankline.nvim": { "branch": "master", "commit": "005b56001b2cb30bfa61b7986bc50657816ba4ba" },
|
"indent-blankline.nvim": { "branch": "master", "commit": "005b56001b2cb30bfa61b7986bc50657816ba4ba" },
|
||||||
"lazy.nvim": { "branch": "main", "commit": "6c3bda4aca61a13a9c63f1c1d1b16b9d3be90d7a" },
|
"lazy.nvim": { "branch": "main", "commit": "6c3bda4aca61a13a9c63f1c1d1b16b9d3be90d7a" },
|
||||||
|
"lspsaga.nvim": { "branch": "main", "commit": "8efe00d6aed9db6449969f889170f1a7e43101a1" },
|
||||||
"mason.nvim": { "branch": "main", "commit": "7dc4facca9702f95353d5a1f87daf23d78e31c2a" },
|
"mason.nvim": { "branch": "main", "commit": "7dc4facca9702f95353d5a1f87daf23d78e31c2a" },
|
||||||
"menu": { "branch": "main", "commit": "7a0a4a2896b715c066cfbe320bdc048091874cc6" },
|
"menu": { "branch": "main", "commit": "7a0a4a2896b715c066cfbe320bdc048091874cc6" },
|
||||||
"minty": { "branch": "main", "commit": "aafc9e8e0afe6bf57580858a2849578d8d8db9e0" },
|
"minty": { "branch": "main", "commit": "aafc9e8e0afe6bf57580858a2849578d8d8db9e0" },
|
||||||
|
"nui.nvim": { "branch": "main", "commit": "de740991c12411b663994b2860f1a4fd0937c130" },
|
||||||
"nvim-autopairs": { "branch": "master", "commit": "23320e75953ac82e559c610bec5a90d9c6dfa743" },
|
"nvim-autopairs": { "branch": "master", "commit": "23320e75953ac82e559c610bec5a90d9c6dfa743" },
|
||||||
"nvim-cmp": { "branch": "main", "commit": "b5311ab3ed9c846b585c0c15b7559be131ec4be9" },
|
"nvim-cmp": { "branch": "main", "commit": "b5311ab3ed9c846b585c0c15b7559be131ec4be9" },
|
||||||
"nvim-lspconfig": { "branch": "master", "commit": "b0caeef0d835fbe19df6ad71dbc4345eaaea649c" },
|
"nvim-lspconfig": { "branch": "master", "commit": "b0caeef0d835fbe19df6ad71dbc4345eaaea649c" },
|
||||||
|
"nvim-tinygit": { "branch": "main", "commit": "a8832a2a889e82efe59b7af569795dc0ae657a5a" },
|
||||||
"nvim-tree.lua": { "branch": "master", "commit": "f0e9951778802526b14c934f7bf746e1e0ae5ed0" },
|
"nvim-tree.lua": { "branch": "master", "commit": "f0e9951778802526b14c934f7bf746e1e0ae5ed0" },
|
||||||
"nvim-treesitter": { "branch": "master", "commit": "42fc28ba918343ebfd5565147a42a26580579482" },
|
"nvim-treesitter": { "branch": "master", "commit": "42fc28ba918343ebfd5565147a42a26580579482" },
|
||||||
"nvim-web-devicons": { "branch": "master", "commit": "c2599a81ecabaae07c49ff9b45dcd032a8d90f1a" },
|
"nvim-web-devicons": { "branch": "master", "commit": "c2599a81ecabaae07c49ff9b45dcd032a8d90f1a" },
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,7 @@ local servers = {
|
||||||
cssld = {},
|
cssld = {},
|
||||||
clangd = {},
|
clangd = {},
|
||||||
ts_ls = {},
|
ts_ls = {},
|
||||||
|
dartls = {},
|
||||||
}
|
}
|
||||||
|
|
||||||
for name, opts in pairs(servers) do
|
for name, opts in pairs(servers) do
|
||||||
|
|
|
||||||
10
lua/custom/configs/highlight.lua
Normal file
10
lua/custom/configs/highlight.lua
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
local highlight = {
|
||||||
|
"CatppuccinRed",
|
||||||
|
"CatppuccinPeach",
|
||||||
|
"CatppuccinYellow",
|
||||||
|
"CatppuccinGreen",
|
||||||
|
"CatppuccinBlue",
|
||||||
|
"CatppuccinPurple",
|
||||||
|
}
|
||||||
|
|
||||||
|
return highlight
|
||||||
|
|
@ -7,3 +7,5 @@ map("n", ";", ":", { desc = "CMD enter command mode" })
|
||||||
|
|
||||||
-- i then j&k to escape
|
-- i then j&k to escape
|
||||||
map("i", "jk", "<ESC>")
|
map("i", "jk", "<ESC>")
|
||||||
|
|
||||||
|
map("n", "<leader>a", "<cmd>Lspsaga code_action<CR>", { desc = "Display code actions" })
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
return {
|
return {
|
||||||
|
|
||||||
-- config for formatters
|
-- config for formatters
|
||||||
{
|
{
|
||||||
"stevearc/conform.nvim",
|
"stevearc/conform.nvim",
|
||||||
|
|
@ -40,4 +41,74 @@ return {
|
||||||
},
|
},
|
||||||
config = true,
|
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,
|
||||||
|
-- },
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue