fresh
This commit is contained in:
commit
0cbbf662e3
473 files changed
+40489
No files matched your search
@@ -0,0 +1,34 @@
|
||||
return {
|
||||
"aznhe21/actions-preview.nvim",
|
||||
init = function()
|
||||
local keys = require("lazyvim.plugins.lsp.keymaps").get()
|
||||
|
||||
keys[#keys + 1] = { "<leader>ca", false }
|
||||
end,
|
||||
event = "LspAttach",
|
||||
opts = {
|
||||
telescope = {
|
||||
sorting_strategy = "ascending",
|
||||
layout_strategy = "vertical",
|
||||
layout_config = {
|
||||
width = 0.6,
|
||||
height = 0.7,
|
||||
prompt_position = "top",
|
||||
preview_cutoff = 20,
|
||||
preview_height = function(_, _, max_lines)
|
||||
return max_lines - 15
|
||||
end,
|
||||
},
|
||||
},
|
||||
},
|
||||
keys = {
|
||||
{
|
||||
"<leader>ca",
|
||||
function()
|
||||
require("actions-preview").code_actions()
|
||||
end,
|
||||
mode = { "n", "v" },
|
||||
desc = "Code Action Preview",
|
||||
},
|
||||
},
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
return {
|
||||
{
|
||||
"Zeioth/compiler.nvim",
|
||||
cmd = { "CompilerOpen", "CompilerToggleResults", "CompilerRedo" },
|
||||
dependencies = { "stevearc/overseer.nvim" },
|
||||
opts = {},
|
||||
-- stylua: ignore
|
||||
keys = {
|
||||
{ "<leader>ccc", "<cmd>CompilerOpen<cr>", desc = "Open Compiler" },
|
||||
{ "<leader>ccR", function() vim.cmd("CompilerStop") vim.cmd("CompilerRedo") end, desc = "Redo Compiler" },
|
||||
{ "<leader>ccr", "<cmd>CompilerToggleResults<cr>", desc = "Toggle Compiler Results" },
|
||||
{ "<F3>", "<cmd>CompilerOpen<cr>", desc = "Open Compiler" },
|
||||
{ "<S-F3>", function() vim.cmd("CompilerStop") vim.cmd("CompilerRedo") end, desc = "Redo Compiler" },
|
||||
{ "<F4>", "<cmd>CompilerToggleResults<cr>", desc = "Toggle Compiler Results" },
|
||||
},
|
||||
},
|
||||
{
|
||||
"stevearc/overseer.nvim",
|
||||
opts = {
|
||||
task_list = {
|
||||
direction = "bottom",
|
||||
min_height = 15,
|
||||
max_height = 15,
|
||||
default_detail = 1,
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
"folke/which-key.nvim",
|
||||
opts = {
|
||||
defaults = {
|
||||
["<leader>cc"] = { name = "compiler" },
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
return {
|
||||
"nvim-neo-tree/neo-tree.nvim",
|
||||
dependencies = {
|
||||
"antosha417/nvim-lsp-file-operations",
|
||||
opts = {},
|
||||
},
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
return {
|
||||
"zeioth/garbage-day.nvim",
|
||||
event = "LspAttach",
|
||||
opts = {
|
||||
notifications = true,
|
||||
grace_period = 60 * 10,
|
||||
},
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
return {
|
||||
"dnlhc/glance.nvim",
|
||||
init = function()
|
||||
local keys = require("lazyvim.plugins.lsp.keymaps").get()
|
||||
|
||||
keys[#keys + 1] = { "gd", false }
|
||||
keys[#keys + 1] = { "gr", false }
|
||||
keys[#keys + 1] = { "gy", false }
|
||||
keys[#keys + 1] = { "gI", false }
|
||||
end,
|
||||
cmd = { "Glance" },
|
||||
opts = {
|
||||
border = {
|
||||
enable = true,
|
||||
},
|
||||
hooks = {
|
||||
before_open = function(results, open, jump, method)
|
||||
local uri = vim.uri_from_bufnr(0)
|
||||
if #results == 1 then
|
||||
local target_uri = results[1].uri or results[1].targetUri
|
||||
|
||||
if target_uri == uri then
|
||||
jump(results[1])
|
||||
else
|
||||
open(results)
|
||||
end
|
||||
else
|
||||
open(results)
|
||||
end
|
||||
end,
|
||||
},
|
||||
},
|
||||
keys = {
|
||||
{ "gd", "<CMD>Glance definitions<CR>", desc = "Goto Definition" },
|
||||
{ "gr", "<CMD>Glance references<CR>", desc = "References" },
|
||||
{ "gy", "<CMD>Glance type_definitions<CR>", desc = "Goto t[y]pe definitions" },
|
||||
{ "gI", "<CMD>Glance implementations<CR>", desc = "Goto implementations" },
|
||||
},
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
return {
|
||||
"smjonas/inc-rename.nvim",
|
||||
cmd = "IncRename",
|
||||
opts = {},
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
return {
|
||||
"VidocqH/lsp-lens.nvim",
|
||||
event = "LspAttach",
|
||||
opts = {
|
||||
sections = {
|
||||
definition = false,
|
||||
references = function(count)
|
||||
return " Ref: " .. count
|
||||
end,
|
||||
implements = function(count)
|
||||
return " Imp: " .. count
|
||||
end,
|
||||
git_authors = false,
|
||||
},
|
||||
},
|
||||
keys = {
|
||||
{ "<leader>ue", "<cmd>LspLensToggle<cr>", desc = "Toggle Lsp Lens" },
|
||||
},
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
return {
|
||||
"kosayoda/nvim-lightbulb",
|
||||
event = "LspAttach",
|
||||
opts = {
|
||||
autocmd = { enabled = true },
|
||||
sign = { enabled = true, text = "" },
|
||||
action_kinds = { "quickfix", "refactor" },
|
||||
ignore = {
|
||||
actions_without_kind = true,
|
||||
},
|
||||
},
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
return {
|
||||
"zbirenbaum/neodim",
|
||||
event = "LspAttach",
|
||||
opts = {
|
||||
alpha = 0.60,
|
||||
},
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
return {
|
||||
"Wansmer/symbol-usage.nvim",
|
||||
event = function()
|
||||
if vim.fn.has("nvim-0.10") == 1 then
|
||||
return "LspAttach"
|
||||
else
|
||||
return "BufRead"
|
||||
end
|
||||
end,
|
||||
opts = {},
|
||||
}
|
||||
Reference in new issue
Block a user