📁 files(nvim): changes to the directories and extras
another bug change to the structure of the nvim config. probably, tomorrow will be finished
This commit is contained in:
parent
a5c9067f38
commit
e457722492
44 changed files with 321 additions and 299 deletions
|
@ -72,7 +72,7 @@
|
|||
"noice.nvim": { "branch": "main", "commit": "50fc77bcd75cf32374521fb227e9f41f3fe1521a" },
|
||||
"nui.nvim": { "branch": "main", "commit": "c0c8e347ceac53030f5c1ece1c5a5b6a17a25b32" },
|
||||
"numb.nvim": { "branch": "master", "commit": "3f7d4a74bd456e747a1278ea1672b26116e0824d" },
|
||||
"nvim-cmp": { "branch": "main", "commit": "d3a3056204e1a9dbb7c7fe36c114dc43b681768c" },
|
||||
"nvim-cmp": { "branch": "main", "commit": "51260c02a8ffded8e16162dcf41a23ec90cfba62" },
|
||||
"nvim-cmp-fonts": { "branch": "master", "commit": "43be83eb24ff8aec124c3aae64d053a095e03bd0" },
|
||||
"nvim-dap": { "branch": "master", "commit": "b595c820018a15b6d54bf53b5cbeaa6f2d7a27e2" },
|
||||
"nvim-dap-go": { "branch": "main", "commit": "a5cc8dcad43f0732585d4793deb02a25c4afb766" },
|
||||
|
@ -83,14 +83,14 @@
|
|||
"nvim-jdtls": { "branch": "master", "commit": "a09f8cdd75c546eb024d0f0b5b3ad185f05b738f" },
|
||||
"nvim-jqx": { "branch": "master", "commit": "11b1d0368e5b23b9c356da8e5f70bb5827f27f62" },
|
||||
"nvim-lightbulb": { "branch": "master", "commit": "8f00b89dd1b1dbde16872bee5fbcee2e58c9b8e9" },
|
||||
"nvim-lint": { "branch": "master", "commit": "158232735a7f7d9c5de2aadb8bde4d5d67724f13" },
|
||||
"nvim-lint": { "branch": "master", "commit": "962a76877a4479a535b935bd7ef35ad41ba308b2" },
|
||||
"nvim-lspconfig": { "branch": "master", "commit": "6428fcab6f3c09e934bc016c329806314384a41e" },
|
||||
"nvim-notify": { "branch": "master", "commit": "e4a2022f4fec2d5ebc79afa612f96d8b11c627b3" },
|
||||
"nvim-numbertoggle": { "branch": "main", "commit": "9ab95e60ea5ec138e1b2332e0fc18b8e5de464c6" },
|
||||
"nvim-puppeteer": { "branch": "main", "commit": "b2793ab39120086fa59327d3901a847961198662" },
|
||||
"nvim-regexplainer": { "branch": "main", "commit": "187f8666c2ba0fcba4ddb991e48d7229b0a58d96" },
|
||||
"nvim-spectre": { "branch": "master", "commit": "696cff781a4a7ecc91549736835e2acbd00fe859" },
|
||||
"nvim-treesitter": { "branch": "master", "commit": "4199be485cd85662d8ff1dc8c4cc78d819fad6cd" },
|
||||
"nvim-treesitter": { "branch": "master", "commit": "44762abc90725e279f3b9cfbe4cafb41ea72f09b" },
|
||||
"nvim-treesitter-context": { "branch": "master", "commit": "8aa32aa6b84dda357849dbc0f775e69f2e04c041" },
|
||||
"nvim-treesitter-endwise": { "branch": "master", "commit": "4c344ffc8d54d7e1ba2cefaaa2c10ea93aa1cc2d" },
|
||||
"nvim-treesitter-textobjects": { "branch": "master", "commit": "eb208bfdfcf76efea0424747e23e44641e13aaa6" },
|
||||
|
@ -136,6 +136,7 @@
|
|||
"tree-sitter-hypr": { "branch": "master", "commit": "90b3ddf8a85b5ea3d9dc4920fddb16182a192e14" },
|
||||
"treesj": { "branch": "main", "commit": "070e6761d0b11a55446d988a69908f7a0928dbab" },
|
||||
"trouble.nvim": { "branch": "main", "commit": "f1168feada93c0154ede4d1fe9183bf69bac54ea" },
|
||||
"tsc.nvim": { "branch": "main", "commit": "26d3c9010f3ef78fbecdfc69d901ab8ed89cff6c" },
|
||||
"twilight.nvim": { "branch": "main", "commit": "8b7b50c0cb2dc781b2f4262a5ddd57571556d1e4" },
|
||||
"undotree": { "branch": "master", "commit": "3ff3aa02fd3a18d7fc5be9ed3166d36c545707fe" },
|
||||
"urlview.nvim": { "branch": "main", "commit": "bdbdf1e020e283551f003e71b0004096c746ef57" },
|
||||
|
|
|
@ -23,35 +23,35 @@
|
|||
"lazyvim.plugins.extras.util.dot",
|
||||
"lazyvim.plugins.extras.util.project",
|
||||
"lazyvim.plugins.extras.vscode",
|
||||
"plugins.extras.ai",
|
||||
"plugins.extras.alpha",
|
||||
"plugins.extras.annotation",
|
||||
"plugins.extras.breadcrumbs",
|
||||
"plugins.extras.cmp",
|
||||
"plugins.extras.color",
|
||||
"plugins.extras.compiler",
|
||||
"plugins.extras.db",
|
||||
"plugins.extras.debug",
|
||||
"plugins.extras.discordrcp",
|
||||
"plugins.extras.documentation",
|
||||
"plugins.extras.git",
|
||||
"plugins.extras.github",
|
||||
"plugins.extras.harpoon",
|
||||
"plugins.extras.lsp",
|
||||
"plugins.extras.markdown",
|
||||
"plugins.extras.multicursor",
|
||||
"plugins.extras.rainbow-delimeters",
|
||||
"plugins.extras.refactor",
|
||||
"plugins.extras.repl",
|
||||
"plugins.extras.rest-client",
|
||||
"plugins.extras.scrollbar",
|
||||
"plugins.extras.semshi",
|
||||
"plugins.extras.smooth-scrolling",
|
||||
"plugins.extras.test-extended",
|
||||
"plugins.extras.ui-extended",
|
||||
"plugins.extras.util",
|
||||
"plugins.extras.web",
|
||||
"plugins.extras.zen-mode"
|
||||
"plugins.extras.ai.codeium",
|
||||
"plugins.extras.ai.gpt",
|
||||
"plugins.extras.coding.cmp",
|
||||
"plugins.extras.coding.documentation",
|
||||
"plugins.extras.coding.multicursor",
|
||||
"plugins.extras.coding.refactoring",
|
||||
"plugins.extras.coding.rest-client",
|
||||
"plugins.extras.dap.persistent-breakpoints",
|
||||
"plugins.extras.editor.breadcrumbs",
|
||||
"plugins.extras.editor.color",
|
||||
"plugins.extras.editor.git",
|
||||
"plugins.extras.editor.github",
|
||||
"plugins.extras.editor.harpoon",
|
||||
"plugins.extras.lang.db",
|
||||
"plugins.extras.lang.markdown",
|
||||
"plugins.extras.lang.semshi",
|
||||
"plugins.extras.lang.web",
|
||||
"plugins.extras.lsp.compiler",
|
||||
"plugins.extras.lsp.lsp",
|
||||
"plugins.extras.lsp.repl",
|
||||
"plugins.extras.test.test-extended",
|
||||
"plugins.extras.ui.alpha",
|
||||
"plugins.extras.ui.rainbow-delimeters",
|
||||
"plugins.extras.ui.scrollbar",
|
||||
"plugins.extras.ui.ui-extended",
|
||||
"plugins.extras.ui.zen-mode",
|
||||
"plugins.extras.util.discordrcp",
|
||||
"plugins.extras.util.smooth-scrolling",
|
||||
"plugins.extras.util.util"
|
||||
],
|
||||
"news": {
|
||||
"NEWS.md": "2123"
|
||||
|
|
31
.config/nvim/lua/plugins/extras/ai/codeium.lua
Normal file
31
.config/nvim/lua/plugins/extras/ai/codeium.lua
Normal file
|
@ -0,0 +1,31 @@
|
|||
return {
|
||||
"Exafunction/codeium.vim",
|
||||
event = "BufEnter",
|
||||
config = function()
|
||||
vim.g.codeium_disable_bindings = 1
|
||||
|
||||
vim.keymap.set("i", "<M-CR>", function()
|
||||
return vim.fn["codeium#Accept"]()
|
||||
end, { expr = true })
|
||||
|
||||
vim.keymap.set("i", "<M-]>", function()
|
||||
return vim.fn["codeium#CycleCompletions"](1)
|
||||
end, { expr = true })
|
||||
|
||||
vim.keymap.set("i", "<M-[>", function()
|
||||
return vim.fn["codeium#CycleCompletions"](-1)
|
||||
end, { expr = true })
|
||||
|
||||
vim.keymap.set("i", "<M-c>", function()
|
||||
return vim.fn["codeium#Clear"]()
|
||||
end, { expr = true })
|
||||
|
||||
vim.keymap.set("n", "<leader>cI", function()
|
||||
if vim.g.codeium_enabled == true then
|
||||
vim.cmd("CodeiumDisable")
|
||||
else
|
||||
vim.cmd("CodeiumEnable")
|
||||
end
|
||||
end, { noremap = true, desc = "Toggle Codeium" })
|
||||
end,
|
||||
}
|
23
.config/nvim/lua/plugins/extras/ai/copilot.lua
Normal file
23
.config/nvim/lua/plugins/extras/ai/copilot.lua
Normal file
|
@ -0,0 +1,23 @@
|
|||
return {
|
||||
"zbirenbaum/copilot.lua",
|
||||
enabled = false,
|
||||
opts = {
|
||||
suggestion = {
|
||||
enabled = true,
|
||||
auto_trigger = true,
|
||||
keymap = {
|
||||
accept = "<M-CR>",
|
||||
accept_line = "<M-l>",
|
||||
accept_word = "<M-k>",
|
||||
next = "<M-]>",
|
||||
prev = "<M-[>",
|
||||
dismiss = "<M-c>",
|
||||
},
|
||||
},
|
||||
panel = { enabled = false },
|
||||
filetypes = {
|
||||
markdown = true,
|
||||
help = true,
|
||||
},
|
||||
},
|
||||
}
|
|
@ -1,35 +1,4 @@
|
|||
return {
|
||||
{
|
||||
"Exafunction/codeium.vim",
|
||||
event = "BufEnter",
|
||||
config = function()
|
||||
vim.g.codeium_disable_bindings = 1
|
||||
|
||||
vim.keymap.set("i", "<M-CR>", function()
|
||||
return vim.fn["codeium#Accept"]()
|
||||
end, { expr = true })
|
||||
|
||||
vim.keymap.set("i", "<M-]>", function()
|
||||
return vim.fn["codeium#CycleCompletions"](1)
|
||||
end, { expr = true })
|
||||
|
||||
vim.keymap.set("i", "<M-[>", function()
|
||||
return vim.fn["codeium#CycleCompletions"](-1)
|
||||
end, { expr = true })
|
||||
|
||||
vim.keymap.set("i", "<M-c>", function()
|
||||
return vim.fn["codeium#Clear"]()
|
||||
end, { expr = true })
|
||||
|
||||
vim.keymap.set("n", "<leader>cI", function()
|
||||
if vim.g.codeium_enabled == true then
|
||||
vim.cmd("CodeiumDisable")
|
||||
else
|
||||
vim.cmd("CodeiumEnable")
|
||||
end
|
||||
end, { noremap = true, desc = "Toggle Codeium" })
|
||||
end,
|
||||
},
|
||||
{
|
||||
"jackMort/ChatGPT.nvim",
|
||||
opts = {
|
||||
|
@ -130,27 +99,4 @@ return {
|
|||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
"zbirenbaum/copilot.lua",
|
||||
enabled = false,
|
||||
opts = {
|
||||
suggestion = {
|
||||
enabled = true,
|
||||
auto_trigger = true,
|
||||
keymap = {
|
||||
accept = "<M-CR>",
|
||||
accept_line = "<M-l>",
|
||||
accept_word = "<M-k>",
|
||||
next = "<M-]>",
|
||||
prev = "<M-[>",
|
||||
dismiss = "<M-c>",
|
||||
},
|
||||
},
|
||||
panel = { enabled = false },
|
||||
filetypes = {
|
||||
markdown = true,
|
||||
help = true,
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
|
@ -1,56 +0,0 @@
|
|||
return {
|
||||
{
|
||||
"goolord/alpha-nvim",
|
||||
event = "VimEnter",
|
||||
optional = true,
|
||||
opts = function()
|
||||
local dashboard = require("alpha.themes.dashboard")
|
||||
local logo = [[
|
||||
|
||||
███████████ █████ ██
|
||||
███████████ █████
|
||||
████████████████ ███████████ ███ ███████
|
||||
████████████████ ████████████ █████ ██████████████
|
||||
██████████████ █████████████ █████ █████ ████ █████
|
||||
██████████████████████████████████ █████ █████ ████ █████
|
||||
██████ ███ █████████████████ ████ █████ █████ ████ ██████
|
||||
]]
|
||||
-- local logo = [[
|
||||
-- ▄ ▄
|
||||
-- ▄ ▄▄▄ ▄ ▄▄▄ ▄ ▄
|
||||
-- █ ▄ █▄█ ▄▄▄ █ █▄█ █ █
|
||||
-- ▄▄ █▄█▄▄▄█ █▄█▄█▄▄█▄▄█ █
|
||||
-- ▄ █▄▄█ ▄ ▄▄ ▄█ ▄▄▄▄▄▄▄▄▄▄▄▄▄▄
|
||||
-- █▄▄▄▄ ▄▄▄ █ ▄ ▄▄▄ ▄ ▄▄▄ ▄ ▄ █ ▄
|
||||
-- ▄ █ █▄█ █▄█ █ █ █▄█ █ █▄█ ▄▄▄ █ █
|
||||
-- █▄█ ▄ █▄▄█▄▄█ █ ▄▄█ █ ▄ █ █▄█▄█ █
|
||||
-- █▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄█ █▄█▄▄▄█
|
||||
-- ]]
|
||||
|
||||
dashboard.section.header.val = vim.split(logo, "\n")
|
||||
-- stylua: ignore
|
||||
dashboard.section.buttons.val = {
|
||||
dashboard.button("f", " " .. " Find file", "<cmd> Telescope find_files <cr>"),
|
||||
dashboard.button("n", " " .. " New file", "<cmd> ene <BAR> startinsert <cr>"),
|
||||
dashboard.button("r", " " .. " Recent files", "<cmd> Telescope oldfiles <cr>"),
|
||||
dashboard.button("p", " " .. " Projects", "<cmd>Telescope projects <CR>"),
|
||||
dashboard.button("g", " " .. " Find text", "<cmd> Telescope live_grep <cr>"),
|
||||
dashboard.button("c", " " .. " Config", "<cmd> lua require('lazyvim.util').telescope.config_files()() <cr>"),
|
||||
dashboard.button("d", " " .. " Dotfiles", "<cmd>FloatermNew --disposable --name=dots --opener=edit --titleposition=center --height=0.85 --width=0.85 dots<CR>"),
|
||||
dashboard.button("s", " " .. " Restore Session", [[<cmd> lua require("persistence").load() <cr>]]),
|
||||
dashboard.button("e", " " .. " Lazy Extras", "<cmd> LazyExtras <cr>"),
|
||||
dashboard.button("l", " " .. " Lazy", "<cmd> Lazy <cr>"),
|
||||
dashboard.button("q", " " .. " Quit", "<cmd> qa <cr>"),
|
||||
}
|
||||
for _, button in ipairs(dashboard.section.buttons.val) do
|
||||
button.opts.hl = "AlphaButtons"
|
||||
button.opts.hl_shortcut = "AlphaShortcut"
|
||||
end
|
||||
dashboard.section.header.opts.hl = "AlphaHeader"
|
||||
dashboard.section.buttons.opts.hl = "AlphaButtons"
|
||||
dashboard.section.footer.opts.hl = "AlphaFooter"
|
||||
dashboard.opts.layout[1].val = 8
|
||||
return dashboard
|
||||
end,
|
||||
},
|
||||
}
|
|
@ -63,4 +63,49 @@ return {
|
|||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
"luckasRanarison/nvim-devdocs",
|
||||
cmd = {
|
||||
"DevdocsFetch",
|
||||
"DevdocsInstall",
|
||||
"DevdocsUninstall",
|
||||
"DevdocsOpen",
|
||||
"DevdocsOpenFloat",
|
||||
"DevdocsOpenCurrent",
|
||||
"DevdocsOpenCurrentFloat",
|
||||
"DevdocsUpdate",
|
||||
"DevdocsUpdateAll",
|
||||
},
|
||||
keys = {
|
||||
{ "<leader>sE", "<cmd>DevdocsOpen<cr>", desc = "Devdocs" },
|
||||
{ "<leader>se", "<cmd>DevdocsOpenCurrent<cr>", desc = "Devdocs Current" },
|
||||
},
|
||||
opts = {
|
||||
ensure_installed = {
|
||||
"css",
|
||||
"html",
|
||||
"javascript",
|
||||
"lua-5.4",
|
||||
"python-3.11",
|
||||
"react",
|
||||
"typescript",
|
||||
"angular",
|
||||
"bash",
|
||||
"fish-3.6",
|
||||
"git",
|
||||
"go",
|
||||
"rust",
|
||||
"sass",
|
||||
"vue-3",
|
||||
"docker",
|
||||
"markdown",
|
||||
"svelte",
|
||||
"tailwindcss",
|
||||
"eslint",
|
||||
"prettier",
|
||||
"npm",
|
||||
"node",
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
17
.config/nvim/lua/plugins/extras/coding/multicursor.lua
Normal file
17
.config/nvim/lua/plugins/extras/coding/multicursor.lua
Normal file
|
@ -0,0 +1,17 @@
|
|||
return {
|
||||
"smoka7/multicursors.nvim",
|
||||
dependencies = {
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
"smoka7/hydra.nvim",
|
||||
},
|
||||
cmd = { "MCstart", "MCvisual", "MCclear", "MCpattern", "MCvisualPattern", "MCunderCursor" },
|
||||
keys = {
|
||||
{
|
||||
mode = { "v", "n" },
|
||||
"<Leader>m",
|
||||
"<cmd>MCstart<cr>",
|
||||
desc = "Create a selection for selected text or word under the cursor",
|
||||
},
|
||||
},
|
||||
config = true,
|
||||
}
|
19
.config/nvim/lua/plugins/extras/coding/refactoring.lua
Normal file
19
.config/nvim/lua/plugins/extras/coding/refactoring.lua
Normal file
|
@ -0,0 +1,19 @@
|
|||
local Util = require("lazyvim.util")
|
||||
|
||||
return {
|
||||
"ThePrimeagen/refactoring.nvim",
|
||||
requires = {
|
||||
{ "nvim-lua/plenary.nvim" },
|
||||
{ "nvim-treesitter/nvim-treesitter" },
|
||||
},
|
||||
opts = {},
|
||||
config = function(_, opts)
|
||||
Util.on_load("telescope.nvim", function()
|
||||
require("telescope").load_extension("refactoring")
|
||||
end)
|
||||
end,
|
||||
-- stylua: ignore
|
||||
keys = {
|
||||
{ "<leader>r", function() require('telescope').extensions.refactoring.refactors() end, mode = { "n", "x" }, desc = "Refactor" },
|
||||
},
|
||||
}
|
|
@ -1,18 +0,0 @@
|
|||
return {
|
||||
{
|
||||
"uga-rosa/ccc.nvim",
|
||||
event = { "BufRead" },
|
||||
cmd = { "CccPick", "CccConvert", "CccHighlighterEnable", "CccHighlighterDisable", "CccHighlighterToggle" },
|
||||
keys = {
|
||||
{ "<leader>uC", "<cmd>CccHighlighterToggle<cr>", desc = "Toggle Colorizer" },
|
||||
{ "<S-C>", "<cmd>CccConvert<cr>", desc = "Convert color" },
|
||||
{ "<C-c>", "<cmd>CccPick<cr>", desc = "Pick Color" },
|
||||
},
|
||||
opts = {
|
||||
highlighter = {
|
||||
auto_enable = true,
|
||||
lsp = true,
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
|
@ -0,0 +1,12 @@
|
|||
return {
|
||||
"Weissle/persistent-breakpoints.nvim",
|
||||
event = "BufReadPost",
|
||||
keys = {
|
||||
{ "<leader>dd", "<cmd>PBClearAllBreakpoints<cr>", desc = "Delete All Breakpoints" },
|
||||
{ "<leader>dB", "<cmd>PBSetConditionalBreakpoint<cr>", desc = "Breakpoint Condition" },
|
||||
{ "<leader>db", "<cmd>PBToggleBreakpoint<cr>", desc = "Toggle Breakpoint" },
|
||||
},
|
||||
opts = {
|
||||
load_breakpoints_event = { "BufReadPost" },
|
||||
},
|
||||
}
|
|
@ -1,14 +0,0 @@
|
|||
return {
|
||||
{
|
||||
"Weissle/persistent-breakpoints.nvim",
|
||||
event = "BufReadPost",
|
||||
keys = {
|
||||
{ "<leader>dd", "<cmd>PBClearAllBreakpoints<cr>", desc = "Delete All Breakpoints" },
|
||||
{ "<leader>dB", "<cmd>PBSetConditionalBreakpoint<cr>", desc = "Breakpoint Condition" },
|
||||
{ "<leader>db", "<cmd>PBToggleBreakpoint<cr>", desc = "Toggle Breakpoint" },
|
||||
},
|
||||
opts = {
|
||||
load_breakpoints_event = { "BufReadPost" },
|
||||
},
|
||||
},
|
||||
}
|
|
@ -1,47 +0,0 @@
|
|||
return {
|
||||
{
|
||||
"luckasRanarison/nvim-devdocs",
|
||||
cmd = {
|
||||
"DevdocsFetch",
|
||||
"DevdocsInstall",
|
||||
"DevdocsUninstall",
|
||||
"DevdocsOpen",
|
||||
"DevdocsOpenFloat",
|
||||
"DevdocsOpenCurrent",
|
||||
"DevdocsOpenCurrentFloat",
|
||||
"DevdocsUpdate",
|
||||
"DevdocsUpdateAll",
|
||||
},
|
||||
keys = {
|
||||
{ "<leader>sE", "<cmd>DevdocsOpen<cr>", desc = "Devdocs" },
|
||||
{ "<leader>se", "<cmd>DevdocsOpenCurrent<cr>", desc = "Devdocs Current" },
|
||||
},
|
||||
opts = {
|
||||
ensure_installed = {
|
||||
"css",
|
||||
"html",
|
||||
"javascript",
|
||||
"lua-5.4",
|
||||
"python-3.11",
|
||||
"react",
|
||||
"typescript",
|
||||
"angular",
|
||||
"bash",
|
||||
"fish-3.6",
|
||||
"git",
|
||||
"go",
|
||||
"rust",
|
||||
"sass",
|
||||
"vue-3",
|
||||
"docker",
|
||||
"markdown",
|
||||
"svelte",
|
||||
"tailwindcss",
|
||||
"eslint",
|
||||
"prettier",
|
||||
"npm",
|
||||
"node",
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
|
@ -1,6 +1,6 @@
|
|||
return {
|
||||
{
|
||||
"Bekaboo/dropbar.nvim",
|
||||
"Bekaboo/dropbar.nvim", -- NOTE: NVIM >= 10.0
|
||||
event = "BufRead",
|
||||
opts = {
|
||||
sources = {
|
||||
|
@ -11,7 +11,7 @@ return {
|
|||
},
|
||||
},
|
||||
{
|
||||
"utilyre/barbecue.nvim",
|
||||
"utilyre/barbecue.nvim", -- NOTE: NVIM < 10.0
|
||||
name = "barbecue",
|
||||
version = "*",
|
||||
dependencies = {
|
16
.config/nvim/lua/plugins/extras/editor/color.lua
Normal file
16
.config/nvim/lua/plugins/extras/editor/color.lua
Normal file
|
@ -0,0 +1,16 @@
|
|||
return {
|
||||
"uga-rosa/ccc.nvim",
|
||||
event = { "BufRead" },
|
||||
cmd = { "CccPick", "CccConvert", "CccHighlighterEnable", "CccHighlighterDisable", "CccHighlighterToggle" },
|
||||
keys = {
|
||||
{ "<leader>uC", "<cmd>CccHighlighterToggle<cr>", desc = "Toggle Colorizer" },
|
||||
{ "<S-C>", "<cmd>CccConvert<cr>", desc = "Convert color" },
|
||||
{ "<C-c>", "<cmd>CccPick<cr>", desc = "Pick Color" },
|
||||
},
|
||||
opts = {
|
||||
highlighter = {
|
||||
auto_enable = true,
|
||||
lsp = true,
|
||||
},
|
||||
},
|
||||
}
|
|
@ -1,3 +1,5 @@
|
|||
local Util = require("lazyvim.util")
|
||||
|
||||
return {
|
||||
{
|
||||
"sindrets/diffview.nvim",
|
||||
|
@ -20,6 +22,32 @@ return {
|
|||
{ "]g", "<cmd>GitConflictPrevConflict<cr>", desc = "Next Git Conflict" },
|
||||
},
|
||||
},
|
||||
{
|
||||
"ThePrimeagen/git-worktree.nvim",
|
||||
opts = {},
|
||||
config = function(_, opts)
|
||||
Util.on_load("telescope.nvim", function()
|
||||
require("telescope").load_extension("git_worktree")
|
||||
end)
|
||||
end,
|
||||
keys = {
|
||||
{
|
||||
"<leader>gwm",
|
||||
function()
|
||||
require("telescope").extensions.git_worktree.git_worktrees()
|
||||
end,
|
||||
desc = "Manage Worktrees",
|
||||
},
|
||||
{
|
||||
"<leader>gwc",
|
||||
function()
|
||||
require("telescope").extensions.git_worktree.create_git_worktree()
|
||||
end,
|
||||
desc = "Create Worktree",
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
{
|
||||
"folke/which-key.nvim",
|
||||
opts = {
|
|
@ -1,5 +1,4 @@
|
|||
local prefix = "<leader>G"
|
||||
local icon = vim.g.icons_enabled and " " or ""
|
||||
return {
|
||||
{
|
||||
"almo7aya/openingh.nvim",
|
|
@ -1,6 +1,8 @@
|
|||
local Util = require("lazyvim.util")
|
||||
|
||||
return {
|
||||
{
|
||||
"ThePrimeagen/harpoon",
|
||||
{
|
||||
"ThePrimeagen/harpoon",
|
||||
--stylua: ignore
|
||||
keys = {
|
||||
{ "<leader>'", function() require("harpoon.mark").add_file() end, desc = "Add File" },
|
||||
|
@ -12,14 +14,16 @@ return {
|
|||
{ "<leader>5", function() require("harpoon.ui").nav_file(5) end, desc = "File 5" },
|
||||
{ "<leader>6", function() require("harpoon.ui").nav_file(6) end, desc = "File 6" },
|
||||
},
|
||||
opts = {
|
||||
globalsettings = {
|
||||
save_on_toggle = true,
|
||||
enter_on_sendcmd = true,
|
||||
},
|
||||
},
|
||||
setup = function()
|
||||
require("telescope").load_extension("harpoon")
|
||||
end,
|
||||
opts = {
|
||||
globalsettings = {
|
||||
save_on_toggle = true,
|
||||
enter_on_sendcmd = true,
|
||||
},
|
||||
},
|
||||
config = function()
|
||||
Util.on_load("telescope.nvim", function()
|
||||
require("telescope").load_extension("harpoon")
|
||||
end)
|
||||
end,
|
||||
},
|
||||
}
|
|
@ -212,4 +212,12 @@ return {
|
|||
{ "<leader>ue", "<cmd>LspLensToggle<cr>", desc = "Toggle Lsp Lens" },
|
||||
},
|
||||
},
|
||||
{
|
||||
"dmmulroy/tsc.nvim",
|
||||
config = true,
|
||||
cmd = "TSC",
|
||||
keys = {
|
||||
{ "<leader>ct", "<cmd>TSC<cr>", desc = "Type Check" },
|
||||
},
|
||||
},
|
||||
}
|
|
@ -1,19 +0,0 @@
|
|||
return {
|
||||
{
|
||||
"smoka7/multicursors.nvim",
|
||||
dependencies = {
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
"smoka7/hydra.nvim",
|
||||
},
|
||||
cmd = { "MCstart", "MCvisual", "MCclear", "MCpattern", "MCvisualPattern", "MCunderCursor" },
|
||||
keys = {
|
||||
{
|
||||
mode = { "v", "n" },
|
||||
"<Leader>m",
|
||||
"<cmd>MCstart<cr>",
|
||||
desc = "Create a selection for selected text or word under the cursor",
|
||||
},
|
||||
},
|
||||
config = true,
|
||||
},
|
||||
}
|
|
@ -1,20 +0,0 @@
|
|||
return {
|
||||
{
|
||||
"ThePrimeagen/refactoring.nvim",
|
||||
requires = {
|
||||
{ "nvim-lua/plenary.nvim" },
|
||||
{ "nvim-treesitter/nvim-treesitter" },
|
||||
},
|
||||
opts = {},
|
||||
-- stylua: ignore
|
||||
keys = {
|
||||
{ "<leader>r", function() require('telescope').extensions.refactoring.refactors() end, mode = { "n", "x" }, desc = "Refactor" },
|
||||
},
|
||||
},
|
||||
{
|
||||
"nvim-telescope/telescope.nvim",
|
||||
opts = function(_, opts)
|
||||
require("telescope").load_extension("refactoring")
|
||||
end,
|
||||
},
|
||||
}
|
66
.config/nvim/lua/plugins/extras/ui/alpha.lua
Normal file
66
.config/nvim/lua/plugins/extras/ui/alpha.lua
Normal file
|
@ -0,0 +1,66 @@
|
|||
return {
|
||||
{
|
||||
"goolord/alpha-nvim",
|
||||
event = "VimEnter",
|
||||
optional = true,
|
||||
opts = function()
|
||||
local dashboard = require("alpha.themes.dashboard")
|
||||
local logo = [[
|
||||
|
||||
████ ██████ █████ ██
|
||||
███████████ █████
|
||||
█████████ ███████████████████ ███ ███████████
|
||||
█████████ ███ █████████████ █████ ██████████████
|
||||
█████████ ██████████ █████████ █████ █████ ████ █████
|
||||
███████████ ███ ███ █████████ █████ █████ ████ █████
|
||||
██████ █████████████████████ ████ █████ █████ ████ ██████
|
||||
]]
|
||||
-- local logo = [[
|
||||
--
|
||||
-- ███████████ █████ ██
|
||||
-- ███████████ █████
|
||||
-- ████████████████ ███████████ ███ ███████
|
||||
-- ████████████████ ████████████ █████ ██████████████
|
||||
-- ██████████████ █████████████ █████ █████ ████ █████
|
||||
-- ██████████████████████████████████ █████ █████ ████ █████
|
||||
-- ██████ ███ █████████████████ ████ █████ █████ ████ ██████
|
||||
-- ]]
|
||||
-- local logo = [[
|
||||
-- ▄ ▄
|
||||
-- ▄ ▄▄▄ ▄ ▄▄▄ ▄ ▄
|
||||
-- █ ▄ █▄█ ▄▄▄ █ █▄█ █ █
|
||||
-- ▄▄ █▄█▄▄▄█ █▄█▄█▄▄█▄▄█ █
|
||||
-- ▄ █▄▄█ ▄ ▄▄ ▄█ ▄▄▄▄▄▄▄▄▄▄▄▄▄▄
|
||||
-- █▄▄▄▄ ▄▄▄ █ ▄ ▄▄▄ ▄ ▄▄▄ ▄ ▄ █ ▄
|
||||
-- ▄ █ █▄█ █▄█ █ █ █▄█ █ █▄█ ▄▄▄ █ █
|
||||
-- █▄█ ▄ █▄▄█▄▄█ █ ▄▄█ █ ▄ █ █▄█▄█ █
|
||||
-- █▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄█ █▄█▄▄▄█
|
||||
-- ]]
|
||||
|
||||
dashboard.section.header.val = vim.split(logo, "\n")
|
||||
-- stylua: ignore
|
||||
dashboard.section.buttons.val = {
|
||||
dashboard.button("f", " " .. " Find file", "<cmd> Telescope find_files <cr>"),
|
||||
dashboard.button("n", " " .. " New file", "<cmd> ene <BAR> startinsert <cr>"),
|
||||
dashboard.button("r", " " .. " Recent files", "<cmd> Telescope oldfiles <cr>"),
|
||||
dashboard.button("p", " " .. " Projects", "<cmd>Telescope projects <CR>"),
|
||||
dashboard.button("g", " " .. " Find text", "<cmd> Telescope live_grep <cr>"),
|
||||
dashboard.button("c", " " .. " Config", "<cmd> lua require('lazyvim.util').telescope.config_files()() <cr>"),
|
||||
dashboard.button("d", " " .. " Dotfiles", "<cmd>FloatermNew --disposable --name=dots --opener=edit --titleposition=center --height=0.85 --width=0.85 dots<CR>"),
|
||||
dashboard.button("s", " " .. " Restore Session", [[<cmd> lua require("persistence").load() <cr>]]),
|
||||
dashboard.button("e", " " .. " Lazy Extras", "<cmd> LazyExtras <cr>"),
|
||||
dashboard.button("l", " " .. " Lazy", "<cmd> Lazy <cr>"),
|
||||
dashboard.button("q", " " .. " Quit", "<cmd> qa <cr>"),
|
||||
}
|
||||
for _, button in ipairs(dashboard.section.buttons.val) do
|
||||
button.opts.hl = "AlphaButtons"
|
||||
button.opts.hl_shortcut = "AlphaShortcut"
|
||||
end
|
||||
dashboard.section.header.opts.hl = "AlphaHeader"
|
||||
dashboard.section.buttons.opts.hl = "AlphaButtons"
|
||||
dashboard.section.footer.opts.hl = "AlphaFooter"
|
||||
dashboard.opts.layout[1].val = 8
|
||||
return dashboard
|
||||
end,
|
||||
},
|
||||
}
|
|
@ -195,4 +195,10 @@ return {
|
|||
"ThePrimeagen/vim-be-good",
|
||||
cmd = "VimBeGood",
|
||||
},
|
||||
{
|
||||
"vidocqh/auto-indent.nvim",
|
||||
enabled = false,
|
||||
event = "BufReadPost",
|
||||
opts = {},
|
||||
},
|
||||
}
|
|
@ -39,15 +39,6 @@ return {
|
|||
end)
|
||||
end,
|
||||
},
|
||||
{
|
||||
"ThePrimeagen/git-worktree.nvim",
|
||||
opts = {},
|
||||
config = function(_, opts)
|
||||
Util.on_load("telescope.nvim", function()
|
||||
require("telescope").load_extension("git_worktree")
|
||||
end)
|
||||
end,
|
||||
},
|
||||
{
|
||||
"prochri/telescope-all-recent.nvim",
|
||||
dependencies = {
|
||||
|
@ -114,21 +105,6 @@ return {
|
|||
},
|
||||
},
|
||||
keys = {
|
||||
|
||||
{
|
||||
"<leader>gwm",
|
||||
function()
|
||||
require("telescope").extensions.git_worktree.git_worktrees()
|
||||
end,
|
||||
desc = "Manage Worktrees",
|
||||
},
|
||||
{
|
||||
"<leader>gwc",
|
||||
function()
|
||||
require("telescope").extensions.git_worktree.create_git_worktree()
|
||||
end,
|
||||
desc = "Create Worktree",
|
||||
},
|
||||
{
|
||||
"<leader>dm",
|
||||
"<cmd>Telescope dap commands<CR>",
|
||||
|
|
|
@ -55,7 +55,6 @@ return {
|
|||
"prisma",
|
||||
"r",
|
||||
"rasi",
|
||||
"regex",
|
||||
"ruby",
|
||||
"sql",
|
||||
"scss",
|
||||
|
|
Loading…
Add table
Reference in a new issue