fresh
This commit is contained in:
commit
055b3368c8
472 files changed
+40488
No files matched your search
@@ -0,0 +1,43 @@
|
||||
return {
|
||||
{
|
||||
"Exafunction/codeium.vim",
|
||||
event = "InsertEnter",
|
||||
config = function()
|
||||
local opts = { expr = true, silent = true }
|
||||
|
||||
vim.g.codeium_filetypes = { TelescopePrompt = false, DressingInput = false }
|
||||
|
||||
vim.g.codeium_disable_bindings = 1
|
||||
|
||||
vim.keymap.set("i", "<M-CR>", function()
|
||||
return vim.fn["codeium#Accept"]()
|
||||
end, opts)
|
||||
|
||||
vim.keymap.set("i", "<M-]>", function()
|
||||
return vim.fn["codeium#CycleCompletions"](1)
|
||||
end, opts)
|
||||
|
||||
vim.keymap.set("i", "<M-[>", function()
|
||||
return vim.fn["codeium#CycleCompletions"](-1)
|
||||
end, opts)
|
||||
|
||||
vim.keymap.set("i", "<M-c>", function()
|
||||
return vim.fn["codeium#Clear"]()
|
||||
end, opts)
|
||||
|
||||
vim.keymap.set("n", "<leader>cI", "<cmd>CodeiumToggle<cr>", { desc = "Toggle IA" })
|
||||
end,
|
||||
},
|
||||
{
|
||||
"nvim-lualine/lualine.nvim",
|
||||
opts = function(_, opts)
|
||||
local icon = require("lazyvim.config").icons.kinds.Codeium
|
||||
local function show_codeium_status()
|
||||
return icon .. vim.fn["codeium#GetStatusString"]()
|
||||
end
|
||||
|
||||
-- Insert the icon
|
||||
table.insert(opts.sections.lualine_x, 2, show_codeium_status)
|
||||
end,
|
||||
},
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
return {
|
||||
{
|
||||
import = "lazyvim.plugins.extras.coding.copilot",
|
||||
},
|
||||
{
|
||||
"zbirenbaum/copilot.lua",
|
||||
event = "InsertEnter",
|
||||
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>",
|
||||
},
|
||||
},
|
||||
},
|
||||
keys = {
|
||||
{ "<leader>cI", "<cmd>Copilot toggle<cr>", desc = "Toggle IA" },
|
||||
},
|
||||
},
|
||||
}
|
||||
@@ -0,0 +1,106 @@
|
||||
return {
|
||||
{
|
||||
"jackMort/ChatGPT.nvim",
|
||||
dependencies = {
|
||||
"MunifTanjim/nui.nvim",
|
||||
"nvim-lua/plenary.nvim",
|
||||
"nvim-telescope/telescope.nvim",
|
||||
},
|
||||
cond = function()
|
||||
local api_key = os.getenv("OPENAI_API_KEY")
|
||||
return api_key and api_key ~= "" and true or false
|
||||
end,
|
||||
opts = {
|
||||
edit_with_instructions = {
|
||||
diff = false,
|
||||
keymaps = {
|
||||
close = "<C-c>",
|
||||
accept = "<C-y>",
|
||||
toggle_diff = "<C-d>",
|
||||
toggle_settings = "<C-o>",
|
||||
cycle_windows = "<Tab>",
|
||||
use_output_as_input = "<C-i>",
|
||||
},
|
||||
},
|
||||
chat = {
|
||||
welcome_message = "",
|
||||
keymaps = {
|
||||
close = { "<C-c>" },
|
||||
yank_last = "<C-y>",
|
||||
yank_last_code = "<C-k>",
|
||||
scroll_up = "<C-u>",
|
||||
scroll_down = "<C-d>",
|
||||
new_session = "<C-n>",
|
||||
cycle_windows = "<Tab>",
|
||||
cycle_modes = "<C-f>",
|
||||
next_message = "<C-j>",
|
||||
prev_message = "<C-k>",
|
||||
select_session = { "<Space>", "o", "<cr>" },
|
||||
rename_session = "r",
|
||||
delete_session = "d",
|
||||
draft_message = "<C-d>",
|
||||
edit_message = "e",
|
||||
delete_message = "d",
|
||||
toggle_settings = "<C-o>",
|
||||
toggle_message_role = "<C-r>",
|
||||
toggle_system_role_open = "<C-s>",
|
||||
stop_generating = "<C-x>",
|
||||
},
|
||||
},
|
||||
openai_params = {
|
||||
model = "gpt-3.5-turbo-16k",
|
||||
-- model = "gpt-4",
|
||||
frequency_penalty = 0,
|
||||
presence_penalty = 0,
|
||||
max_tokens = 300,
|
||||
temperature = 0.3,
|
||||
top_p = 0.3,
|
||||
n = 1,
|
||||
-- temperature = 0,
|
||||
-- top_p = 1,
|
||||
},
|
||||
openai_edit_params = {
|
||||
model = "gpt-3.5-turbo-16k",
|
||||
-- model = "gpt-4",
|
||||
frequency_penalty = 0,
|
||||
presence_penalty = 0,
|
||||
temperature = 0,
|
||||
top_p = 1,
|
||||
n = 1,
|
||||
},
|
||||
show_quickfixes_cmd = "Trouble quickfix",
|
||||
-- actions_paths = { "~/.config/nvim/custom_actions.json" },
|
||||
},
|
||||
cmd = {
|
||||
"ChatGPT",
|
||||
"ChatGPTActAs",
|
||||
"ChatGPTCompleteCode",
|
||||
"ChatGPTEditWithInstructions",
|
||||
"ChatGPTRun",
|
||||
},
|
||||
-- stylua: ignore
|
||||
keys = {
|
||||
{ "<leader>Cc", "<cmd>ChatGPT<CR>", desc = "ChatGPT" },
|
||||
{ "<leader>Ce", "<cmd>ChatGPTEditWithInstruction<CR>", desc = "Edit with instruction", mode = { "n", "v" } },
|
||||
{ "<leader>Cg", "<cmd>ChatGPTRun grammar_correction<CR>", desc = "Grammar Correction", mode = { "n", "v" } },
|
||||
{ "<leader>Ct", "<cmd>ChatGPTRun translate<CR>", desc = "Translate", mode = { "n", "v" } },
|
||||
{ "<leader>Ck", "<cmd>ChatGPTRun keywords<CR>", desc = "Keywords", mode = { "n", "v" } },
|
||||
{ "<leader>Cd", "<cmd>ChatGPTRun docstring<CR>", desc = "Docstring", mode = { "n", "v" } },
|
||||
{ "<leader>CT", "<cmd>ChatGPTRun add_tests<CR>", desc = "Add Tests", mode = { "n", "v" } },
|
||||
{ "<leader>Co", "<cmd>ChatGPTRun optimize_code<CR>", desc = "Optimize Code", mode = { "n", "v" } },
|
||||
{ "<leader>Cs", "<cmd>ChatGPTRun summarize<CR>", desc = "Summarize", mode = { "n", "v" } },
|
||||
{ "<leader>Cf", "<cmd>ChatGPTRun fix_bugs<CR>", desc = "Fix Bugs", mode = { "n", "v" } },
|
||||
{ "<leader>Cx", "<cmd>ChatGPTRun explain_code<CR>", desc = "Explain Code", mode = { "n", "v" } },
|
||||
{ "<leader>Cr", "<cmd>ChatGPTRun roxygen_edit<CR>", desc = "Roxygen Edit", mode = { "n", "v" } },
|
||||
{ "<leader>Cl", "<cmd>ChatGPTRun code_readability_analysis<CR>", desc = "Code Readability Analysis", mode = { "n", "v" }, },
|
||||
},
|
||||
},
|
||||
{
|
||||
"folke/which-key.nvim",
|
||||
opts = {
|
||||
defaults = {
|
||||
["<leader>C"] = { name = " chatGPT" },
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
return {
|
||||
{
|
||||
"danymat/neogen",
|
||||
opts = {
|
||||
snippet_engine = "luasnip",
|
||||
enabled = true,
|
||||
},
|
||||
-- stylua: ignore
|
||||
keys = {
|
||||
{ "<leader>ad", function() require("neogen").generate() end, desc = "Default Annotation" },
|
||||
{ "<leader>ac", function() require("neogen").generate({ type = "class" }) end, desc = "Class" },
|
||||
{ "<leader>af", function() require("neogen").generate({ type = "func" }) end, desc = "Function" },
|
||||
{ "<leader>at", function() require("neogen").generate({ type = "type" }) end, desc = "Type" },
|
||||
{ "<leader>aF", function() require("neogen").generate({ type = "file" }) end, desc = "File" },
|
||||
},
|
||||
},
|
||||
{
|
||||
"folke/which-key.nvim",
|
||||
opts = {
|
||||
defaults = {
|
||||
["<leader>a"] = { name = " annotation" },
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
"Zeioth/dooku.nvim",
|
||||
cmd = { "DookuGenerate", "DookuOpen", "DookuAutoSetup" },
|
||||
opts = {},
|
||||
-- stylua: ignore
|
||||
keys = {
|
||||
{ "<leader>ag", "<Cmd>DookuGenerate<CR>", desc = "Generate HTML Docs" },
|
||||
},
|
||||
},
|
||||
}
|
||||
@@ -0,0 +1,125 @@
|
||||
return {
|
||||
{
|
||||
"hrsh7th/nvim-cmp",
|
||||
dependencies = {
|
||||
"windwp/nvim-autopairs",
|
||||
opts = {},
|
||||
},
|
||||
opts = function()
|
||||
local cmp = require("cmp")
|
||||
local cmp_autopairs = require("nvim-autopairs.completion.cmp")
|
||||
local ts_utils = require("nvim-treesitter.ts_utils")
|
||||
local ts_node_func_parens_disabled = {
|
||||
-- ecma
|
||||
named_imports = true,
|
||||
-- rust
|
||||
use_declaration = true,
|
||||
}
|
||||
|
||||
local npairs = require("nvim-autopairs")
|
||||
local Rule = require("nvim-autopairs.rule")
|
||||
local cond = require("nvim-autopairs.conds")
|
||||
local brackets = { { "(", ")" }, { "[", "]" }, { "{", "}" } }
|
||||
|
||||
local default_handler = cmp_autopairs.filetypes["*"]["("].handler
|
||||
cmp_autopairs.filetypes["*"]["("].handler = function(char, item, bufnr, rules, commit_character)
|
||||
local node_type = ts_utils.get_node_at_cursor():type()
|
||||
if ts_node_func_parens_disabled[node_type] then
|
||||
if item.data then
|
||||
item.data.funcParensDisabled = true
|
||||
else
|
||||
char = ""
|
||||
end
|
||||
end
|
||||
default_handler(char, item, bufnr, rules, commit_character)
|
||||
end
|
||||
|
||||
cmp.event:on("confirm_done", cmp_autopairs.on_confirm_done())
|
||||
|
||||
npairs.add_rules({
|
||||
-- Rule for a pair with left-side ' ' and right side ' '
|
||||
Rule(" ", " ")
|
||||
-- Pair will only occur if the conditional function returns true
|
||||
:with_pair(function(opts)
|
||||
-- We are checking if we are inserting a space in (), [], or {}
|
||||
local pair = opts.line:sub(opts.col - 1, opts.col)
|
||||
return vim.tbl_contains({
|
||||
brackets[1][1] .. brackets[1][2],
|
||||
brackets[2][1] .. brackets[2][2],
|
||||
brackets[3][1] .. brackets[3][2],
|
||||
}, pair)
|
||||
end)
|
||||
:with_move(cond.none())
|
||||
:with_cr(cond.none())
|
||||
-- We only want to delete the pair of spaces when the cursor is as such: ( | )
|
||||
:with_del(
|
||||
function(opts)
|
||||
local col = vim.api.nvim_win_get_cursor(0)[2]
|
||||
local context = opts.line:sub(col - 1, col + 2)
|
||||
return vim.tbl_contains({
|
||||
brackets[1][1] .. " " .. brackets[1][2],
|
||||
brackets[2][1] .. " " .. brackets[2][2],
|
||||
brackets[3][1] .. " " .. brackets[3][2],
|
||||
}, context)
|
||||
end
|
||||
),
|
||||
|
||||
-- Javascript arrow key
|
||||
Rule("%(.*%)%s*%=>$", " { }", { "typescript", "typescriptreact", "javascript" })
|
||||
:use_regex(true)
|
||||
:set_end_pair_length(2),
|
||||
|
||||
-- Auto addspace on =
|
||||
Rule("=", "")
|
||||
:with_pair(cond.not_inside_quote())
|
||||
:with_pair(function(opts)
|
||||
local last_char = opts.line:sub(opts.col - 1, opts.col - 1)
|
||||
if last_char:match("[%w%=%s]") then
|
||||
return true
|
||||
end
|
||||
return false
|
||||
end)
|
||||
:replace_endpair(function(opts)
|
||||
local prev_2char = opts.line:sub(opts.col - 2, opts.col - 1)
|
||||
local next_char = opts.line:sub(opts.col, opts.col)
|
||||
next_char = next_char == " " and "" or " "
|
||||
if prev_2char:match("%w$") then
|
||||
return "<bs> =" .. next_char
|
||||
end
|
||||
if prev_2char:match("%=$") then
|
||||
return next_char
|
||||
end
|
||||
if prev_2char:match("=") then
|
||||
return "<bs><bs>=" .. next_char
|
||||
end
|
||||
return ""
|
||||
end)
|
||||
:set_end_pair_length(0)
|
||||
:with_move(cond.none())
|
||||
:with_del(cond.none()),
|
||||
})
|
||||
|
||||
-- For each pair of brackets we will add another rule
|
||||
for _, bracket in pairs(brackets) do
|
||||
npairs.add_rules({
|
||||
-- Each of these rules is for a pair with left-side '( ' and right-side ' )' for each bracket type
|
||||
Rule(bracket[1] .. " ", " " .. bracket[2])
|
||||
:with_pair(cond.none())
|
||||
:with_move(function(opts)
|
||||
return opts.char == bracket[2]
|
||||
end)
|
||||
:with_del(cond.none())
|
||||
:use_key(bracket[2])
|
||||
-- Removes the trailing whitespace that can occur without this
|
||||
:replace_map_cr(function(_)
|
||||
return "<C-c>2xi<CR><C-c>O"
|
||||
end),
|
||||
})
|
||||
end
|
||||
end,
|
||||
},
|
||||
{
|
||||
"echasnovski/mini.pairs",
|
||||
enabled = false,
|
||||
},
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
return {
|
||||
"hrsh7th/nvim-cmp",
|
||||
dependencies = {
|
||||
"hrsh7th/cmp-emoji",
|
||||
},
|
||||
opts = function(_, opts)
|
||||
table.insert(opts.sources, { name = "emoji" })
|
||||
end,
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
return {
|
||||
"hrsh7th/nvim-cmp",
|
||||
dependencies = {
|
||||
"amarakon/nvim-cmp-fonts",
|
||||
},
|
||||
opts = function(_, opts)
|
||||
table.insert(opts.sources, { name = "fonts", option = { space_filter = "-" } })
|
||||
end,
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
local cmp = require("cmp")
|
||||
|
||||
return {
|
||||
"hrsh7th/nvim-cmp",
|
||||
dependencies = {
|
||||
"petertriho/cmp-git",
|
||||
opts = {},
|
||||
},
|
||||
opts = function(_, opts)
|
||||
cmp.setup.filetype("gitcommit", {
|
||||
sources = cmp.config.sources({
|
||||
{ name = "git" }, -- You can specify the `git` source if [you were installed it](https://github.com/petertriho/cmp-git).
|
||||
}, {
|
||||
{ name = "buffer" },
|
||||
}),
|
||||
})
|
||||
end,
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
return {
|
||||
"hrsh7th/nvim-cmp",
|
||||
dependencies = {
|
||||
"chrisgrieser/cmp-nerdfont",
|
||||
},
|
||||
opts = function(_, opts)
|
||||
table.insert(opts.sources, { name = "nerdfont" })
|
||||
end,
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
return {
|
||||
"hrsh7th/nvim-cmp",
|
||||
dependencies = {
|
||||
"lukas-reineke/cmp-rg",
|
||||
},
|
||||
opts = function(_, opts)
|
||||
table.insert(opts.sources, { name = "rg", keyword_length = 3 })
|
||||
end,
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
return {
|
||||
"hrsh7th/nvim-cmp",
|
||||
dependencies = {
|
||||
"lukas-reineke/cmp-under-comparator",
|
||||
},
|
||||
opts = function(_, opts)
|
||||
table.insert(opts.sorting.comparators, 4, require("cmp-under-comparator").under)
|
||||
end,
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
return {
|
||||
"hrsh7th/nvim-cmp",
|
||||
dependencies = {
|
||||
"chrisgrieser/cmp_yanky",
|
||||
},
|
||||
opts = function(_, opts)
|
||||
table.insert(opts.sources, { name = "cmp_yanky" })
|
||||
end,
|
||||
}
|
||||
@@ -0,0 +1,75 @@
|
||||
return {
|
||||
"michaelb/sniprun",
|
||||
run = "bash ./install.sh",
|
||||
cmd = { "SnipRun", "SnipInfo", "SnipLive", "SnipClose", "SnipReset", "SnipReplMemoryClean" },
|
||||
opts = {
|
||||
selected_interpreters = {}, --# use those instead of the default for the current filetype
|
||||
repl_enable = { "javascript", "typescript" }, --# enable REPL-like behavior for the given interpreters
|
||||
repl_disable = {}, --# disable REPL-like behavior for the given interpreters
|
||||
|
||||
interpreter_options = {
|
||||
--# interpreter-specific options, see docs / :SnipInfo <name>
|
||||
|
||||
--# use the interpreter name as key
|
||||
GFM_original = {
|
||||
use_on_filetypes = { "markdown.pandoc" }, --# the 'use_on_filetypes' configuration key is
|
||||
--# available for every interpreter
|
||||
},
|
||||
Python3_original = {
|
||||
error_truncate = "auto", --# Truncate runtime errors 'long', 'short' or 'auto'
|
||||
--# the hint is available for every interpreter
|
||||
--# but may not be always respected
|
||||
},
|
||||
},
|
||||
|
||||
--# you can combo different display modes as desired and with the 'Ok' or 'Err' suffix
|
||||
--# to filter only sucessful runs (or errored-out runs respectively)
|
||||
display = {
|
||||
-- "Classic", --# display results in the command-line area
|
||||
-- "VirtualTextOk", --# display ok results as virtual text (multiline is shortened)
|
||||
|
||||
"VirtualText", --# display results as virtual text
|
||||
-- "TempFloatingWindow", --# display results in a floating window
|
||||
-- "LongTempFloatingWindow", --# same as above, but only long results. To use with VirtualText[Ok/Err]
|
||||
-- "Terminal", --# display results in a vertical split
|
||||
-- "TerminalWithCode", --# display results and code history in a vertical split
|
||||
-- "NvimNotify", --# display with the nvim-notify plugin
|
||||
-- "Api" --# return output to a programming interface
|
||||
},
|
||||
|
||||
live_display = { "VirtualTextOk" }, --# display mode used in live_mode
|
||||
|
||||
display_options = {
|
||||
terminal_scrollback = vim.o.scrollback, --# change terminal display scrollback lines
|
||||
terminal_line_number = false, --# whether show line number in terminal window
|
||||
terminal_signcolumn = false, --# whether show signcolumn in terminal window
|
||||
terminal_persistence = true, --# always keep the terminal open (true) or close it at every occasion (false)
|
||||
terminal_width = 45, --# change the terminal display option width
|
||||
notification_timeout = 5, --# timeout for nvim_notify output
|
||||
},
|
||||
|
||||
--# You can use the same keys to customize whether a sniprun producing
|
||||
--# no output should display nothing or '(no output)'
|
||||
show_no_output = {
|
||||
"Classic",
|
||||
"TempFloatingWindow", --# implies LongTempFloatingWindow, which has no effect on its own
|
||||
},
|
||||
|
||||
--# customize highlight groups (setting this overrides colorscheme)
|
||||
-- snipruncolors = {
|
||||
-- SniprunVirtualTextOk = { bg = "#66eeff", fg = "#000000", ctermbg = "Cyan", cterfg = "Black" },
|
||||
-- SniprunFloatingWinOk = { fg = "#66eeff", ctermfg = "Cyan" },
|
||||
-- SniprunVirtualTextErr = { bg = "#881515", fg = "#000000", ctermbg = "DarkRed", cterfg = "Black" },
|
||||
-- SniprunFloatingWinErr = { fg = "#881515", ctermfg = "DarkRed" },
|
||||
-- },
|
||||
|
||||
live_mode_toggle = "off", --# live mode toggle, see Usage - Running for more info
|
||||
|
||||
--# miscellaneous compatibility/adjustement settings
|
||||
inline_messages = false, --# inline_message (0/1) is a one-line way to display messages
|
||||
--# to workaround sniprun not being able to display anything
|
||||
|
||||
borders = "single", --# display borders around floating windows
|
||||
--# possible values are 'none', 'single', 'double', or 'shadow'
|
||||
},
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
return {
|
||||
{
|
||||
"andrewferrier/debugprint.nvim",
|
||||
opts = {
|
||||
create_keymaps = false,
|
||||
},
|
||||
-- stylua: ignore
|
||||
keys = {
|
||||
{ "<Leader>ddl", function() return require("debugprint").debugprint() end, desc = "Print under current line", expr = true },
|
||||
{ "<Leader>ddL", function() return require("debugprint").debugprint({ above = true }) end, desc = "Print above current line", expr = true },
|
||||
{
|
||||
"<Leader>ddv",
|
||||
function() return require("debugprint").debugprint({ variable = true }) end,
|
||||
desc = "Print variable under current line",
|
||||
expr = true,
|
||||
},
|
||||
{
|
||||
"<Leader>ddV",
|
||||
function() return require("debugprint").debugprint({ above = true, variable = true }) end,
|
||||
desc = "Print variable above current line",
|
||||
expr = true,
|
||||
},
|
||||
{ "<Leader>ddd", function() return require("debugprint").deleteprints() end, desc = "Delete all prints" },
|
||||
},
|
||||
},
|
||||
{
|
||||
"folke/which-key.nvim",
|
||||
opts = {
|
||||
defaults = {
|
||||
["<leader>dd"] = { name = "debugPrint" },
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
return {
|
||||
"monaqa/dial.nvim",
|
||||
-- stylua: ignore
|
||||
keys = {
|
||||
{ "<C-a>", function() require("dial.map").manipulate("increment", "normal") end },
|
||||
{ "<C-x>", function() require("dial.map").manipulate("decrement", "normal") end },
|
||||
{ "g<C-a>", function() require("dial.map").manipulate("increment", "gnormal") end },
|
||||
{ "g<C-x>", function() require("dial.map").manipulate("decrement", "gnormal") end },
|
||||
{ "<C-a>", function() require("dial.map").manipulate("increment", "visual") end, mode = "v", },
|
||||
{ "<C-x>", function() require("dial.map").manipulate("decrement", "visual") end, mode = "v", },
|
||||
{ "g<C-a>", function() require("dial.map").manipulate("increment", "gvisual") end, mode = "v", },
|
||||
{ "g<C-x>", function() require("dial.map").manipulate("decrement", "gvisual") end, mode = "v", },
|
||||
},
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
return {
|
||||
"kevinhwang91/nvim-ibus-sw",
|
||||
event = "InsertLeave",
|
||||
opts = {},
|
||||
}
|
||||
@@ -0,0 +1,48 @@
|
||||
return {
|
||||
{
|
||||
"smoka7/multicursors.nvim",
|
||||
dependencies = {
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
"smoka7/hydra.nvim",
|
||||
},
|
||||
cmd = { "MCstart", "MCvisual", "MCclear", "MCpattern", "MCvisualPattern", "MCunderCursor" },
|
||||
-- stylua: ignore
|
||||
keys = {
|
||||
{ mode = { "v", "n" }, "<leader>m", "<cmd>MCstart<cr>", desc = "Multicursor" },
|
||||
},
|
||||
opts = {
|
||||
hint_config = {
|
||||
border = "rounded",
|
||||
position = "bottom-right",
|
||||
},
|
||||
generate_hints = {
|
||||
normal = true,
|
||||
insert = true,
|
||||
extend = true,
|
||||
config = {
|
||||
column_count = 1,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
"nvim-lualine/lualine.nvim",
|
||||
optional = true,
|
||||
opts = function(_, opts)
|
||||
local function is_active()
|
||||
local ok, hydra = pcall(require, "hydra.statusline")
|
||||
return ok and hydra.is_active()
|
||||
end
|
||||
|
||||
local function get_name()
|
||||
local ok, hydra = pcall(require, "hydra.statusline")
|
||||
if ok then
|
||||
return hydra.get_name()
|
||||
end
|
||||
return ""
|
||||
end
|
||||
|
||||
table.insert(opts.sections.lualine_b, { get_name, cond = is_active })
|
||||
end,
|
||||
},
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
return {
|
||||
"chrisgrieser/nvim-recorder",
|
||||
dependencies = { "rcarriga/nvim-notify" },
|
||||
keys = {
|
||||
{ "q", desc = "Start Recording" },
|
||||
{ "Q", desc = "Play Recording" },
|
||||
{ "<C-q>", desc = "Switch Slot" },
|
||||
{ "cq", desc = "Edit Macro" },
|
||||
{ "yq", desc = "Yank Macro" },
|
||||
{ "dq", desc = "Delete All Macros" },
|
||||
},
|
||||
opts = {
|
||||
useNerdFontsIcons = false,
|
||||
slots = { "a", "b", "c", "d" },
|
||||
mapping = {
|
||||
startStopRecording = "q",
|
||||
playMacro = "Q",
|
||||
editMacro = "cq",
|
||||
switchSlot = "<C-q>",
|
||||
deleteAllMacros = "dq",
|
||||
yankMacro = "yq",
|
||||
},
|
||||
},
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
return {
|
||||
"ThePrimeagen/refactoring.nvim",
|
||||
requires = {
|
||||
{ "nvim-lua/plenary.nvim" },
|
||||
{ "nvim-treesitter/nvim-treesitter" },
|
||||
},
|
||||
opts = {},
|
||||
config = function(_, opts)
|
||||
require("lazyvim.util").on_load("telescope.nvim", function()
|
||||
require("telescope").load_extension("refactoring")
|
||||
end)
|
||||
end,
|
||||
-- stylua: ignore
|
||||
keys = {
|
||||
{ "<leader>cR", function() require('telescope').extensions.refactoring.refactors() end, mode = { "n", "x" }, desc = "Refactor" },
|
||||
},
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
return {
|
||||
"vidocqh/auto-indent.nvim",
|
||||
event = "LazyFile",
|
||||
opts = {
|
||||
---@param lnum: number
|
||||
---@return number
|
||||
indentexpr = function(lnum)
|
||||
return require("nvim-treesitter.indent").get_indent(lnum)
|
||||
end,
|
||||
},
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
return {
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
dependencies = {
|
||||
"RRethy/nvim-treesitter-endwise",
|
||||
},
|
||||
opts = {
|
||||
endwise = {
|
||||
enable = true,
|
||||
},
|
||||
},
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
return {
|
||||
"nmac427/guess-indent.nvim",
|
||||
event = "LazyFile",
|
||||
opts = {},
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
return {
|
||||
"echasnovski/mini.align",
|
||||
opts = {},
|
||||
keys = {
|
||||
{ "ga", mode = { "n", "v" }, desc = "Align" },
|
||||
{ "gA", mode = { "n", "v" }, desc = "Align Preview" },
|
||||
},
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
return {
|
||||
"ckolkey/ts-node-action",
|
||||
dependencies = { "nvim-treesitter" },
|
||||
opts = {},
|
||||
--stylua: ignore
|
||||
keys = { { "J", "<cmd>NodeAction<cr>", mode = "n", desc = "Node action" } },
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
return {
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
dependencies = { "chrisgrieser/nvim-puppeteer" },
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
return {
|
||||
"Wansmer/sibling-swap.nvim",
|
||||
dependencies = "nvim-treesitter/nvim-treesitter",
|
||||
opts = {
|
||||
use_default_keymaps = false,
|
||||
highlight_node_at_cursor = true,
|
||||
},
|
||||
-- stylua: ignore
|
||||
keys = {
|
||||
{ "<C-.>", function() require("sibling-swap").swap_with_right() end, desc = "Move Node Right" },
|
||||
{ "<C-,>", function() require("sibling-swap").swap_with_left() end, desc = "Move Node Left" },
|
||||
},
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
return {
|
||||
"chrisgrieser/nvim-spider",
|
||||
opts = {},
|
||||
keys = {
|
||||
{ "w", "<cmd>lua require('spider').motion('w')<CR>", mode = { "n", "o", "x" }, desc = "Spider-w" },
|
||||
{ "e", "<cmd>lua require('spider').motion('e')<CR>", mode = { "n", "o", "x" }, desc = "Spider-e" },
|
||||
{ "b", "<cmd>lua require('spider').motion('b')<CR>", mode = { "n", "o", "x" }, desc = "Spider-b" },
|
||||
{ "E", "<cmd>lua require('spider').motion('ge')<CR>", mode = { "n", "o", "x" }, desc = "Spider-E" },
|
||||
},
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
return {
|
||||
"johmsalas/text-case.nvim",
|
||||
dependencies = { "nvim-telescope/telescope.nvim" },
|
||||
config = function()
|
||||
require("textcase").setup({})
|
||||
require("telescope").load_extension("textcase")
|
||||
end,
|
||||
keys = {
|
||||
{ "gC", "<cmd>TextCaseOpenTelescope<CR>", mode = { "n", "v" }, desc = "Text Case" },
|
||||
},
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
return {
|
||||
"chrisgrieser/nvim-various-textobjs",
|
||||
opts = { useDefaultKeymaps = false },
|
||||
-- stylua: ignore
|
||||
keys = {
|
||||
{ "im", ft = { "markdown" }, mode = { "o", "x" }, function() require("various-textobjs").mdlink("inner") end, desc = "Markdown Link", },
|
||||
{ "am", ft = { "markdown" }, mode = { "o", "x" }, function() require("various-textobjs").mdlink("outer") end, desc = "Markdown Link", },
|
||||
{ "iC", ft = { "markdown" }, mode = { "o", "x" }, function() require("various-textobjs").mdFencedCodeBlock("inner") end, desc = "CodeBlock", },
|
||||
{ "aC", ft = { "markdown" }, mode = { "o", "x" }, function() require("various-textobjs").mdFencedCodeBlock("outer") end, desc = "CodeBlock", },
|
||||
{ "gd", mode = { "o", "x" }, function() require("various-textobjs").diagnostics() end, desc = "Diagnostics", },
|
||||
{ "iy", ft = { "python" }, mode = { "o", "x" }, function() require("various-textobjs").pyTripleQuotes("inner") end, desc = "Triple Quotes", },
|
||||
{ "ay", ft = { "python" }, mode = { "o", "x" }, function() require("various-textobjs").pyTripleQuotes("outer") end, desc = "Triple Quotes", },
|
||||
{ "iC", ft = { "css", "scss", "less" }, mode = { "o", "x" }, function() require("various-textobjs").cssSelector("inner") end, desc = "CSS Selector", },
|
||||
{ "aC", ft = { "css", "scss", "less" }, mode = { "o", "x" }, function() require("various-textobjs").cssSelector("outer") end, desc = "CSS Selector", },
|
||||
},
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
return {
|
||||
"sustech-data/wildfire.nvim",
|
||||
event = "BufEnter",
|
||||
opts = {},
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
return {
|
||||
{
|
||||
"altermo/ultimate-autopair.nvim",
|
||||
event = { "InsertEnter", "CmdlineEnter" },
|
||||
branch = "v0.6", --recomended as each new version will have breaking changes
|
||||
opts = {},
|
||||
},
|
||||
{
|
||||
"echasnovski/mini.pairs",
|
||||
enabled = false,
|
||||
},
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
return {
|
||||
{
|
||||
import = "lazyvim.plugins.extras.coding.yanky",
|
||||
},
|
||||
{
|
||||
"gbprod/yanky.nvim",
|
||||
opts = function(_, opts)
|
||||
local utils = require("yanky.utils")
|
||||
local mapping = require("yanky.telescope.mapping")
|
||||
|
||||
opts.highlight = { timer = 250 }
|
||||
opts.ring = { storage = jit.os:find("Windows") and "shada" or "sqlite" }
|
||||
opts.picker = {
|
||||
telescope = {
|
||||
use_default_mappings = false,
|
||||
mappings = {
|
||||
default = mapping.put("p"),
|
||||
i = {
|
||||
["<c-g>"] = mapping.put("p"),
|
||||
["<c-h>"] = mapping.put("P"),
|
||||
["<c-x>"] = mapping.delete(),
|
||||
["<c-r>"] = mapping.set_register(utils.get_default_register()),
|
||||
},
|
||||
n = {
|
||||
p = mapping.put("p"),
|
||||
P = mapping.put("P"),
|
||||
d = mapping.delete(),
|
||||
r = mapping.set_register(utils.get_default_register()),
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
end,
|
||||
-- stylua: ignore
|
||||
keys = {
|
||||
{"<leader>sy", function() require("telescope").extensions.yank_history.yank_history({}) end, mode = {"n", "v"}, desc = "Yank History"},
|
||||
},
|
||||
},
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
return {
|
||||
{ import = "lazyvim.plugins.extras.dap.core" },
|
||||
{
|
||||
"mfussenegger/nvim-dap",
|
||||
opts = {
|
||||
defaults = {
|
||||
fallback = {
|
||||
external_terminal = {
|
||||
command = "/usr/bin/kitty",
|
||||
args = { "--class", "kitty-dap", "--hold", "--detach", "nvim-dap", "-c", "DAP" },
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
-- stylua: ignore
|
||||
keys = {
|
||||
{ "<F5>", function() require("dap").continue() end, desc = "Debug: Continue" },
|
||||
{ "<F10>", function() require("dap").step_over() end, desc = "Debug: Step over" },
|
||||
{ "<F11>", function() require("dap").step_into() end, desc = "Debug: Step into" },
|
||||
{ "<F12>", function() require("dap").step_out() end, desc = "Debug: Step out" },
|
||||
{ "<F2>", function() require("dap").toggle_breakpoint() end, desc = "Debug: Toggle breakpoint" },
|
||||
},
|
||||
},
|
||||
{
|
||||
"folke/which-key.nvim",
|
||||
opts = {
|
||||
defaults = {
|
||||
["<leader>d"] = { name = " debug" },
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
return {
|
||||
{
|
||||
"Weissle/persistent-breakpoints.nvim",
|
||||
event = "LazyFile",
|
||||
keys = {
|
||||
{ "<leader>dbd", "<cmd>PBClearAllBreakpoints<cr>", desc = "Delete All Breakpoints" },
|
||||
{ "<leader>dbB", "<cmd>PBSetConditionalBreakpoint<cr>", desc = "Breakpoint Condition" },
|
||||
{ "<leader>dbb", "<cmd>PBToggleBreakpoint<cr>", desc = "Toggle Breakpoint" },
|
||||
{ "<F2>", "<cmd>PBToggleBreakpoint<cr>", desc = "Toggle Breakpoint" },
|
||||
},
|
||||
opts = {
|
||||
load_breakpoints_event = { "BufReadPost" },
|
||||
},
|
||||
},
|
||||
{
|
||||
"mfussenegger/nvim-dap",
|
||||
optional = true,
|
||||
keys = {
|
||||
{ "<F2>", false },
|
||||
{ "<leader>dB", false },
|
||||
},
|
||||
},
|
||||
{
|
||||
"folke/which-key.nvim",
|
||||
opts = {
|
||||
defaults = {
|
||||
["<leader>db"] = { name = "breakpoints" },
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
return {
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
dependencies = {
|
||||
"LiadOz/nvim-dap-repl-highlights",
|
||||
opts = {},
|
||||
},
|
||||
opts = function(_, opts)
|
||||
if type(opts.ensure_installed) == "table" then
|
||||
vim.list_extend(opts.ensure_installed, { "dap_repl" })
|
||||
end
|
||||
end,
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
return {
|
||||
"nvim-telescope/telescope-dap.nvim",
|
||||
config = function()
|
||||
require("lazyvim.util").on_load("telescope.nvim", function()
|
||||
require("telescope").load_extension("dap")
|
||||
end)
|
||||
end,
|
||||
-- stylua: ignore
|
||||
keys = {
|
||||
{ "<leader>dm", "<cmd>Telescope dap commands<CR>", desc = "Commands" },
|
||||
{ "<leader>df", "<cmd>Telescope dap frames<CR>", desc = "Frames" },
|
||||
{ "<leader>dG", "<cmd>Telescope dap configurations<CR>", desc = "Configurations" },
|
||||
{ "<leader>dbL", "<cmd>Telescope dap list_breakpoints<CR>", desc = "List Breakpoints" },
|
||||
{ "<leader>dv", "<cmd>Telescope dap variables<CR>", desc = "Variables" },
|
||||
},
|
||||
}
|
||||
@@ -0,0 +1,43 @@
|
||||
return {
|
||||
"tomasky/bookmarks.nvim",
|
||||
config = function()
|
||||
require("bookmarks").setup({
|
||||
save_file = vim.fn.stdpath("state") .. "/bookmarks",
|
||||
keywords = {
|
||||
["@t"] = " ",
|
||||
["@w"] = " ",
|
||||
["@f"] = " ",
|
||||
["@n"] = " ",
|
||||
},
|
||||
})
|
||||
require("lazyvim.util").on_load("telescope.nvim", function()
|
||||
require("telescope").setup({
|
||||
extensions = {
|
||||
repo = {
|
||||
list = {
|
||||
fd_opts = {
|
||||
"--no-ignore-vcs",
|
||||
},
|
||||
search_dirs = {
|
||||
"~/Repos/",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
})
|
||||
require("telescope").load_extension("bookmarks")
|
||||
end)
|
||||
end,
|
||||
-- stylua: ignore
|
||||
keys = {
|
||||
{ "<leader>fB", "<cmd>Telescope bookmarks list<cr>", desc = "Bookmarks" },
|
||||
{ "mm", function() require("bookmarks").bookmark_toggle() end, desc = "Toggle Bookmark" },
|
||||
{ "ml", function() require("bookmarks").bookmark_ann() end, desc = "Add/Edit Current Line" },
|
||||
{ "mc", function() require("bookmarks").bookmark_clean() end, desc = "Clear All Bookmarks" },
|
||||
{ "mn", function() require("bookmarks").bookmark_next() end, desc = "Next Bookmark" },
|
||||
{ "mp", function() require("bookmarks").bookmark_prev() end, desc = "Previous Bookmark" },
|
||||
{ "]k", function() require("bookmarks").bookmark_next() end, desc = "Next Bookmark" },
|
||||
{ "[k", function() require("bookmarks").bookmark_prev() end, desc = "Previous Bookmark" },
|
||||
{ "mL", function() require("bookmarks").bookmark_list() end, desc = "List Bookmarks" },
|
||||
},
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
return {
|
||||
"uga-rosa/ccc.nvim",
|
||||
init = function()
|
||||
vim.api.nvim_create_autocmd("BufReadPost", {
|
||||
callback = function()
|
||||
local firstline = vim.api.nvim_buf_get_lines(0, 0, 1, false)[1]
|
||||
if vim.endswith(firstline, "vim-pseudo-modeline: buffer_has_colors") then
|
||||
vim.cmd.CccHighlighterEnable()
|
||||
end
|
||||
end,
|
||||
})
|
||||
end,
|
||||
ft = { "css", "scss", "sh" },
|
||||
cmd = { "CccPick", "CccConvert", "CccHighlighterEnable", "CccHighlighterDisable", "CccHighlighterToggle" },
|
||||
keys = {
|
||||
{ "<leader>up", "<cmd>CccHighlighterToggle<cr>", desc = "Toggle Paint/Colorizer" },
|
||||
{ "<A-C>", "<cmd>CccConvert<cr>", desc = "Convert color" },
|
||||
{ "<S-c>", "<cmd>CccPick<cr>", desc = "Pick Color" },
|
||||
},
|
||||
opts = {
|
||||
highlighter = {
|
||||
auto_enable = true,
|
||||
lsp = true,
|
||||
},
|
||||
},
|
||||
}
|
||||
@@ -0,0 +1,45 @@
|
||||
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 = {
|
||||
dir_path = vim.fn.stdpath("data") .. "/devdocs", -- installation directory
|
||||
telescope = {}, -- passed to the telescope picker
|
||||
float_win = { -- passed to nvim_open_win(), see :h api-floatwin
|
||||
relative = "editor",
|
||||
height = 25,
|
||||
width = 100,
|
||||
border = "rounded",
|
||||
},
|
||||
wrap = false, -- text wrap, only applies to floating window
|
||||
previewer_cmd = nil, -- for example: "glow"
|
||||
cmd_args = {}, -- example using glow: { "-s", "dark", "-w", "80" }
|
||||
cmd_ignore = {}, -- ignore cmd rendering for the listed docs
|
||||
picker_cmd = false, -- use cmd previewer in picker preview
|
||||
picker_cmd_args = {}, -- example using glow: { "-s", "dark", "-w", "50" }
|
||||
after_open = function(bufnr)
|
||||
vim.api.nvim_buf_set_keymap(bufnr, "n", "q", ":close<CR>", {})
|
||||
end,
|
||||
ensure_installed = {
|
||||
"javascript",
|
||||
"lua-5.4",
|
||||
"fish-3.6",
|
||||
"git",
|
||||
"npm",
|
||||
"node",
|
||||
},
|
||||
},
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
return {
|
||||
"nvim-neorg/neorg",
|
||||
build = ":Neorg sync-parsers",
|
||||
dependencies = { "nvim-lua/plenary.nvim" },
|
||||
event = "VeryLazy",
|
||||
opts = {
|
||||
load = {
|
||||
["core.defaults"] = {}, -- Loads default behaviour
|
||||
["core.concealer"] = {}, -- Adds pretty icons to your documents
|
||||
["core.keybinds"] = {}, -- Adds default keybindings
|
||||
["core.completion"] = {
|
||||
config = {
|
||||
engine = "nvim-cmp",
|
||||
},
|
||||
}, -- Enables support for completion plugins
|
||||
["core.journal"] = {}, -- Enables support for the journal module
|
||||
["core.dirman"] = { -- Manages Neorg workspaces
|
||||
config = {
|
||||
workspaces = {
|
||||
notes = "~/projects/notes",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
@@ -0,0 +1,95 @@
|
||||
return {
|
||||
"epwalsh/obsidian.nvim",
|
||||
event = { "BufReadPre" .. vim.fn.expand("~") .. "Documentos/Obsidian/obsidianVault/root/**.md" },
|
||||
keys = {
|
||||
{
|
||||
"gf",
|
||||
function()
|
||||
if require("obsidian").util.cursor_on_markdown_link() then
|
||||
return "<cmd>ObsidianFollowLink<CR>"
|
||||
else
|
||||
return "gf"
|
||||
end
|
||||
end,
|
||||
noremap = false,
|
||||
expr = true,
|
||||
},
|
||||
},
|
||||
dependencies = {
|
||||
"nvim-lua/plenary.nvim",
|
||||
"hrsh7th/nvim-cmp",
|
||||
"nvim-telescope/telescope.nvim",
|
||||
},
|
||||
opts = {
|
||||
dir = vim.env.HOME .. "Documentos/Obsidian/obsidianVault/root", -- specify the vault location. no need to call 'vim.fn.expand' here
|
||||
use_advanced_uri = true,
|
||||
finder = "telescope.nvim",
|
||||
mappings = {},
|
||||
|
||||
templates = {
|
||||
subdir = "templates",
|
||||
date_format = "%Y-%m-%d-%a",
|
||||
time_format = "%H:%M",
|
||||
},
|
||||
|
||||
backlinks = { height = 10, wrap = true },
|
||||
|
||||
-- Optional, by default when you use `:ObsidianFollowLink` on a link to an external
|
||||
-- URL it will be ignored but you can customize this behavior here.
|
||||
follow_url_func = function(url)
|
||||
-- Open the URL in the default web browser.
|
||||
vim.fn.jobstart({ "xdg-open", url }) -- linux
|
||||
end,
|
||||
|
||||
-- Optional, set to true if you use the Obsidian Advanced URI plugin.
|
||||
-- https://github.com/Vinzent03/obsidian-advanced-uri
|
||||
use_advanced_uri = false,
|
||||
|
||||
-- Optional, set to true to force ':ObsidianOpen' to bring the app to the foreground.
|
||||
open_app_foreground = false,
|
||||
|
||||
-- Optional, by default commands like `:ObsidianSearch` will attempt to use
|
||||
-- telescope.nvim, fzf-lua, and fzf.nvim (in that order), and use the
|
||||
-- first one they find. By setting this option to your preferred
|
||||
-- finder you can attempt it first. Note that if the specified finder
|
||||
-- is not installed, or if it the command does not support it, the
|
||||
-- remaining finders will be attempted in the original order.
|
||||
finder = "telescope.nvim",
|
||||
|
||||
-- Optional, determines whether to open notes in a horizontal split, a vertical split,
|
||||
-- or replacing the current buffer (default)
|
||||
-- Accepted values are "current", "hsplit" and "vsplit"
|
||||
open_notes_in = "current",
|
||||
|
||||
daily_notes = {
|
||||
folder = "journal/daily",
|
||||
date_format = "%Y-%m-%d",
|
||||
},
|
||||
|
||||
completion = {
|
||||
nvim_cmp = true,
|
||||
min_chars = 2,
|
||||
-- Where to put new notes created from completion. Valid options are
|
||||
-- * "current_dir" - put new notes in same directory as the current buffer.
|
||||
-- * "notes_subdir" - put new notes in the default notes subdirectory.
|
||||
new_notes_location = "current_dir",
|
||||
|
||||
-- Whether to add the output of the node_id_func to new notes in autocompletion.
|
||||
-- E.g. "[[Foo" completes to "[[foo|Foo]]" assuming "foo" is the ID of the note.
|
||||
prepend_note_id = false,
|
||||
},
|
||||
|
||||
note_frontmatter_func = function(note)
|
||||
-- This is equivalent to the default frontmatter function.
|
||||
local out = { id = note.id, aliases = note.aliases, tags = note.tags }
|
||||
-- `note.metadata` contains any manually added fields in the frontmatter.
|
||||
-- So here we just make sure those fields are kept in the frontmatter.
|
||||
if note.metadata ~= nil and require("obsidian").util.table_length(note.metadata) > 0 then
|
||||
for k, v in pairs(note.metadata) do
|
||||
out[k] = v
|
||||
end
|
||||
end
|
||||
return out
|
||||
end,
|
||||
},
|
||||
}
|
||||
@@ -0,0 +1,44 @@
|
||||
return {
|
||||
{
|
||||
"sindrets/diffview.nvim",
|
||||
keys = {
|
||||
{ "<leader>gd", "<cmd>DiffviewFileHistory<CR>", desc = "Diff File History" },
|
||||
{ "<leader>gD", "<cmd>DiffviewOpen<CR>", desc = "Diff View Open" },
|
||||
},
|
||||
opts = function(_, opts)
|
||||
local actions = require("diffview.actions")
|
||||
|
||||
opts.keymaps = {
|
||||
--stylua: ignore
|
||||
view = {
|
||||
{ "n", "<leader>gCo", actions.conflict_choose("ours"), { desc = "Choose the OURS version of a conflict" } },
|
||||
{ "n", "<leader>gCt", actions.conflict_choose("theirs"), { desc = "Choose the THEIRS version of a conflict" } },
|
||||
{ "n", "<leader>gCb", actions.conflict_choose("base"), { desc = "Choose the BASE version of a conflict" } },
|
||||
{ "n", "<leader>gCa", actions.conflict_choose("all"), { desc = "Choose all the versions of a conflict" } },
|
||||
{ "n", "<leader>gCx", actions.conflict_choose("none"), { desc = "Delete the conflict region" } },
|
||||
{ "n", "<leader>gCO", actions.conflict_choose_all("ours"), { desc = "Choose the OURS version of a conflict for the whole file" } },
|
||||
{ "n", "<leader>gCT", actions.conflict_choose_all("theirs"), { desc = "Choose the THEIRS version of a conflict for the whole file" } },
|
||||
{ "n", "<leader>gCB", actions.conflict_choose_all("base"), { desc = "Choose the BASE version of a conflict for the whole file" } },
|
||||
{ "n", "<leader>gCA", actions.conflict_choose_all("all"), { desc = "Choose all the versions of a conflict for the whole file" } },
|
||||
{ "n", "<leader>gCX", actions.conflict_choose_all("none"), { desc = "Delete the conflict region for the whole file" } },
|
||||
},
|
||||
--stylua: ignore
|
||||
file_panel = {
|
||||
{ "n", "<leader>gCO", actions.conflict_choose_all("ours"), { desc = "Choose the OURS version of a conflict for the whole file" } },
|
||||
{ "n", "<leader>gCT", actions.conflict_choose_all("theirs"), { desc = "Choose the THEIRS version of a conflict for the whole file" } },
|
||||
{ "n", "<leader>gCB", actions.conflict_choose_all("base"), { desc = "Choose the BASE version of a conflict for the whole file" } },
|
||||
{ "n", "<leader>gCA", actions.conflict_choose_all("all"), { desc = "Choose all the versions of a conflict for the whole file" } },
|
||||
{ "n", "<leader>gCX", actions.conflict_choose_all("none"), { desc = "Delete the conflict region for the whole file" } },
|
||||
},
|
||||
}
|
||||
end,
|
||||
},
|
||||
{
|
||||
"folke/which-key.nvim",
|
||||
opts = {
|
||||
defaults = {
|
||||
["<leader>gC"] = { name = "conflicts" },
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
return {
|
||||
{
|
||||
"akinsho/git-conflict.nvim",
|
||||
opts = {
|
||||
default_mappings = false,
|
||||
},
|
||||
version = "v1.0.0",
|
||||
cmd = { "GitConflictChooseTheirs", "GitConflictChooseOurs", "GitConflictChooseBoth", "GitConflictListQf" },
|
||||
keys = {
|
||||
{ "<leader>gCt", "<cmd>GitConflictChooseTheirs<cr>", desc = "Choose Their Changes" },
|
||||
{ "<leader>gCo", "<cmd>GitConflictChooseOurs<cr>", desc = "Choose Our Changes" },
|
||||
{ "<leader>gCb", "<cmd>GitConflictChooseBoth<cr>", desc = "Choose Both changes" },
|
||||
{ "<leader>gCl", "<cmd>GitConflictListQf<cr>", desc = "Git Conflict Quicklist" },
|
||||
{ "[g", "<cmd>GitConflictPrevConflict<cr>", desc = "Prev Git Conflict" },
|
||||
{ "]g", "<cmd>GitConflictPrevConflict<cr>", desc = "Next Git Conflict" },
|
||||
},
|
||||
},
|
||||
{
|
||||
"folke/which-key.nvim",
|
||||
opts = {
|
||||
defaults = {
|
||||
["<leader>gC"] = { name = "conflicts" },
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
@@ -0,0 +1,103 @@
|
||||
local prefix = "<leader>G"
|
||||
|
||||
return {
|
||||
{
|
||||
"almo7aya/openingh.nvim",
|
||||
cmd = { "OpenInGHRepo", "OpenInGHFile", "OpenInGHFileLines" },
|
||||
keys = {
|
||||
{ prefix .. "ro", "<cmd>OpenInGHRepo<CR>", desc = "Open git repo in web", mode = { "n" } },
|
||||
{ prefix .. "rf", "<cmd>OpenInGHFile<CR>", desc = "Open git file in web", mode = { "n" } },
|
||||
{ prefix .. "rc", "<cmd>OpenInGHFileLines<CR>", desc = "Open current line in web", mode = { "n", "x", "v" } },
|
||||
},
|
||||
},
|
||||
{
|
||||
"folke/which-key.nvim",
|
||||
opts = {
|
||||
defaults = {
|
||||
["<leader>G"] = { name = " github" },
|
||||
["<leader>Gc"] = { name = "comments" },
|
||||
["<leader>Gt"] = { name = "threads" },
|
||||
["<leader>Gi"] = { name = "issues" },
|
||||
["<leader>Gp"] = { name = "pull requests" },
|
||||
["<leader>Gpm"] = { name = "merge current PR" },
|
||||
["<leader>Gr"] = { name = "repo" },
|
||||
["<leader>Ga"] = { name = "assignee/reviewer" },
|
||||
["<leader>Gl"] = { name = "label" },
|
||||
["<leader>Ge"] = { name = "reaction" },
|
||||
["<leader>GR"] = { name = "review" },
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
"pwntester/octo.nvim",
|
||||
dependencies = {
|
||||
"nvim-lua/plenary.nvim",
|
||||
"nvim-telescope/telescope.nvim",
|
||||
"nvim-tree/nvim-web-devicons",
|
||||
},
|
||||
cmd = { "Octo" },
|
||||
opts = {
|
||||
use_diagnostic_signs = true,
|
||||
mappings = {},
|
||||
},
|
||||
keys = {
|
||||
{ prefix .. "ca", "<cmd>Octo comment add<CR>", desc = "Add a new comment" },
|
||||
{ prefix .. "cd", "<cmd>Octo comment delete<CR>", desc = "Delete a comment" },
|
||||
|
||||
{ prefix .. "ta", "<cmd>Octo thread resolve<CR>", desc = "Mark thread as resolved" },
|
||||
{ prefix .. "td", "<cmd>Octo thread unresolve<CR>", desc = "Mark thread as unresolved" },
|
||||
|
||||
{ prefix .. "ic", "<cmd>Octo issue close<CR>", desc = "Close current issue" },
|
||||
{ prefix .. "ir", "<cmd>Octo issue reopen<CR>", desc = "Reopen current issue" },
|
||||
{ prefix .. "il", "<cmd>Octo issue list<CR>", desc = "List open issues" },
|
||||
{ prefix .. "iu", "<cmd>Octo issue url<CR>", desc = "Copies URL of current issue" },
|
||||
{ prefix .. "io", "<cmd>Octo issue browser<CR>", desc = "Open current issue in browser" },
|
||||
|
||||
{ prefix .. "pp", "<cmd>Octo pr checkout<CR>", desc = "Checkout PR" },
|
||||
{ prefix .. "pmm", "<cmd>Octo pr merge commit<CR>", desc = "Merge commit PR" },
|
||||
{ prefix .. "pms", "<cmd>Octo pr merge squash<CR>", desc = "Squash merge PR" },
|
||||
{ prefix .. "pmd", "<cmd>Octo pr merge delete<CR>", desc = "Delete merge PR" },
|
||||
{ prefix .. "pmr", "<cmd>Octo pr merge rebase<CR>", desc = "Rebase merge PR" },
|
||||
{ prefix .. "pc", "<cmd>Octo pr close<CR>", desc = "Close current PR" },
|
||||
{ prefix .. "pn", "<cmd>Octo pr create<CR>", desc = "Create PR for current branch" },
|
||||
{ prefix .. "pd", "<cmd>Octo pr diff<CR>", desc = "Show PR diff" },
|
||||
{ prefix .. "ps", "<cmd>Octo pr list<CR>", desc = "List open PRs" },
|
||||
{ prefix .. "pr", "<cmd>Octo pr ready<CR>", desc = "Mark draft as ready for review" },
|
||||
{ prefix .. "po", "<cmd>Octo pr browser<CR>", desc = "Open current PR in browser" },
|
||||
{ prefix .. "pu", "<cmd>Octo pr url<CR>", desc = "Copies URL of current PR" },
|
||||
{ prefix .. "pt", "<cmd>Octo pr commits<CR>", desc = "List PR commits" },
|
||||
{ prefix .. "pl", "<cmd>Octo pr commits<CR>", desc = "List changed files in PR" },
|
||||
|
||||
{ prefix .. "rl", "<cmd>Octo repo list<CR>", desc = "List repo user stats" },
|
||||
{ prefix .. "rF", "<cmd>Octo repo fork<CR>", desc = "Fork repo" },
|
||||
{ prefix .. "ru", "<cmd>Octo repo url<CR>", desc = "Copies URL of current repo" },
|
||||
|
||||
{ prefix .. "aa", "<cmd> Octo assignee add<CR>", desc = "Assign a user" },
|
||||
{ prefix .. "ar", "<cmd> Octo assignee remove<CR>", desc = "Remove a user" },
|
||||
{ prefix .. "ap", "<cmd> Octo reviewer add<CR>", desc = "Assign a PR reviewer" },
|
||||
|
||||
{ prefix .. "la", "<cmd> Octo label add<CR>", desc = "Assign a label" },
|
||||
{ prefix .. "lr", "<cmd> Octo label remove<CR>", desc = "Remove a label" },
|
||||
{ prefix .. "lc", "<cmd> Octo label create<CR>", desc = "Create a label" },
|
||||
|
||||
{ prefix .. "e1", "<cmd>Octo reaction thumbs_up<CR>", desc = "Add 👍 reaction" },
|
||||
{ prefix .. "e2", "<cmd>Octo reaction thumbs_down<CR>", desc = "Add 👎 reaction" },
|
||||
{ prefix .. "e3", "<cmd>Octo reaction eyes<CR>", desc = "Add 👀 reaction" },
|
||||
{ prefix .. "e4", "<cmd>Octo reaction laugh<CR>", desc = "Add 😄 reaction" },
|
||||
{ prefix .. "e5", "<cmd>Octo reaction confused<CR>", desc = "Add 😕 reaction" },
|
||||
{ prefix .. "e6", "<cmd>Octo reaction rocket<CR>", desc = "Add 🚀 reaction" },
|
||||
{ prefix .. "e7", "<cmd>Octo reaction heart<CR>", desc = "Add ❤️ reaction" },
|
||||
{ prefix .. "e8", "<cmd>Octo reaction party<CR>", desc = "Add 🎉 reaction" },
|
||||
|
||||
{ prefix .. "x", "<cmd>Octo actions<CR>", desc = "Run an action" },
|
||||
|
||||
{ prefix .. "ss", "<cmd> Octo review start<CR>", desc = "Start review" },
|
||||
{ prefix .. "sf", "<cmd> Octo review submit<CR>", desc = "Submit review" },
|
||||
{ prefix .. "sr", "<cmd> Octo review resume<CR>", desc = "Submit resume" },
|
||||
{ prefix .. "sd", "<cmd> Octo review discard<CR>", desc = "Delete pending review" },
|
||||
{ prefix .. "sc", "<cmd> Octo review comments<CR>", desc = "View pending comments" },
|
||||
{ prefix .. "sp", "<cmd> Octo review commit<CR>", desc = "Select commit to review" },
|
||||
{ prefix .. "sc", "<cmd> Octo review close<CR>", desc = "Return to PR" },
|
||||
},
|
||||
},
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
return {
|
||||
{
|
||||
"ThePrimeagen/git-worktree.nvim",
|
||||
opts = {},
|
||||
config = function()
|
||||
require("lazyvim.util").on_load("telescope.nvim", function()
|
||||
require("telescope").load_extension("git_worktree")
|
||||
end)
|
||||
end,
|
||||
-- stylua: ignore
|
||||
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 = {
|
||||
defaults = {
|
||||
["<leader>gw"] = { name = "worktrees" },
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
@@ -0,0 +1,74 @@
|
||||
return {
|
||||
{
|
||||
"ThePrimeagen/harpoon",
|
||||
branch = "harpoon2",
|
||||
dependencies = { "nvim-lua/plenary.nvim" },
|
||||
--stylua: ignore
|
||||
keys = {
|
||||
{ "<leader>ha", function() require("harpoon"):list():append() end, desc = "Add Mark" },
|
||||
{ "<leader>hh", function() require("harpoon").ui:toggle_quick_menu(require("harpoon"):list()) end, desc = "Menu" },
|
||||
{ "<leader>hf", "<cmd>Telescope harpoon marks<CR>", desc = "Files" },
|
||||
{ "<leader>h1", function() require("harpoon"):list():select(1) end, desc = "File 1" },
|
||||
{ "<leader>h2", function() require("harpoon"):list():select(2) end, desc = "File 2" },
|
||||
{ "<leader>h3", function() require("harpoon"):list():select(3) end, desc = "File 3" },
|
||||
{ "<leader>h4", function() require("harpoon"):list():select(4) end, desc = "File 4" },
|
||||
{ "<leader>h5", function() require("harpoon"):list():select(5) end, desc = "File 5" },
|
||||
{ "<leader>h6", function() require("harpoon"):list():select(6) end, desc = "File 6" },
|
||||
{ "<leader>h7", function() require("harpoon"):list():select(7) end, desc = "File 7" },
|
||||
{ "<leader>h8", function() require("harpoon"):list():select(8) end, desc = "File 8" },
|
||||
{ "<leader>h9", function() require("harpoon"):list():select(9) end, desc = "File 9" },
|
||||
{ "]H", function() require("harpoon"):list():next() end, desc = "Next Harpoon File" },
|
||||
{ "[H", function() require("harpoon"):list():prev() end, desc = "Prev Harpoon File" },
|
||||
{ "<M-]>", function() require("harpoon"):list():next() end, desc = "Next Harpoon File" },
|
||||
{ "<M-[>", function() require("harpoon"):list():prev() end, desc = "Prev Harpoon File" },
|
||||
},
|
||||
opts = {
|
||||
globalsettings = {
|
||||
save_on_toggle = true,
|
||||
enter_on_sendcmd = true,
|
||||
},
|
||||
},
|
||||
config = function(_, opts)
|
||||
require("harpoon").setup(opts)
|
||||
|
||||
require("lazyvim.util").on_load("telescope.nvim", function()
|
||||
require("telescope").load_extension("harpoon")
|
||||
end)
|
||||
end,
|
||||
},
|
||||
{
|
||||
"goolord/alpha-nvim",
|
||||
optional = true,
|
||||
opts = function(_, dashboard)
|
||||
local button = dashboard.button("h", " " .. " Harpoon", "<cmd>Telescope harpoon marks<CR>")
|
||||
button.opts.hl = "AlphaButtons"
|
||||
button.opts.hl_shortcut = "AlphaShortcut"
|
||||
table.insert(dashboard.section.buttons.val, 5, button)
|
||||
end,
|
||||
},
|
||||
{
|
||||
"nvimdev/dashboard-nvim",
|
||||
optional = true,
|
||||
opts = function(_, opts)
|
||||
local harpoon = {
|
||||
action = "Telescope harpoon marks",
|
||||
desc = " Harpoon",
|
||||
icon = " ",
|
||||
key = "h",
|
||||
}
|
||||
|
||||
harpoon.desc = harpoon.desc .. string.rep(" ", 43 - #harpoon.desc)
|
||||
harpoon.key_format = " %s"
|
||||
|
||||
table.insert(opts.config.center, 5, harpoon)
|
||||
end,
|
||||
},
|
||||
{
|
||||
"folke/which-key.nvim",
|
||||
opts = {
|
||||
defaults = {
|
||||
["<leader>h"] = { name = " harpoon" },
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
return {
|
||||
{
|
||||
import = "lazyvim.plugins.extras.editor.leap",
|
||||
},
|
||||
{
|
||||
"ggandor/leap.nvim",
|
||||
dependencies = {
|
||||
"ggandor/leap-spooky",
|
||||
},
|
||||
opts = {
|
||||
prefix = true,
|
||||
paste_on_remote_yank = true,
|
||||
},
|
||||
},
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
return {
|
||||
"aurum77/live-server.nvim",
|
||||
build = function()
|
||||
require("live_server.util").install()
|
||||
end,
|
||||
cmd = { "LiveServer", "LiveServerStart", "LiveServerStop" },
|
||||
keys = {
|
||||
{ "<leader>cV", ft = "html", "<cmd>LiveServer<CR>", desc = "Live Server" },
|
||||
},
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
return {
|
||||
"Zeioth/markmap.nvim",
|
||||
build = "yarn global add markmap-cli",
|
||||
cmd = { "MarkmapOpen", "MarkmapSave", "MarkmapWatch", "MarkmapWatchStop" },
|
||||
opts = {},
|
||||
keys = {
|
||||
{ "<leader>cm", "<cmd>MarkmapOpen<cr>", desc = "Markmap" },
|
||||
},
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
return {
|
||||
"nacro90/numb.nvim",
|
||||
event = "CmdlineEnter",
|
||||
opts = {},
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
return {
|
||||
"stevearc/oil.nvim",
|
||||
dependencies = "nvim-tree/nvim-web-devicons",
|
||||
opts = {
|
||||
delete_to_trash = true,
|
||||
keymaps = {
|
||||
["q"] = "actions.close",
|
||||
},
|
||||
},
|
||||
-- stylua: ignore
|
||||
keys = {
|
||||
{ "<leader>;", function() require("oil").toggle_float() end, desc = "Toggle oil" },
|
||||
},
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
return {
|
||||
{
|
||||
"hedyhli/outline.nvim",
|
||||
cmd = { "Outline", "OutlineOpen" },
|
||||
keys = { { "<leader>cs", "<cmd>Outline<CR>", desc = "Symbols Outline" } },
|
||||
opts = {
|
||||
outline_window = {
|
||||
show_symbol_lineno = true,
|
||||
auto_jump = true,
|
||||
jump_highlight_duration = 150,
|
||||
},
|
||||
symbol_folding = {
|
||||
autofold_depth = 1,
|
||||
},
|
||||
symbols = {
|
||||
filter = require("lazyvim.config").kind_filter,
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
"folke/edgy.nvim",
|
||||
optional = true,
|
||||
opts = function(_, opts)
|
||||
opts.right = opts.right or {}
|
||||
table.insert(opts.right, {
|
||||
title = "Symbols Outline",
|
||||
ft = "Outline",
|
||||
pinned = true,
|
||||
open = "OutlineOpen",
|
||||
size = { width = 0.15 },
|
||||
})
|
||||
end,
|
||||
},
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
return {
|
||||
{
|
||||
"vuki656/package-info.nvim",
|
||||
event = {
|
||||
"BufRead package.json",
|
||||
"BufRead package-lock.json",
|
||||
},
|
||||
opts = {},
|
||||
-- stylua: ignore
|
||||
keys = {
|
||||
{ "<leader>ps", "<cmd>lua require('package-info').show({ force = true })<cr>", desc = "Show Package Versions" },
|
||||
{ "<leader>pu", "<cmd>lua require('package-info').update()<cr>", desc = "Update Package" },
|
||||
{ "<leader>pr", "<cmd>lua require('package-info').delete()<cr>", desc = "Remove Package" },
|
||||
{ "<leader>pv", "<cmd>lua require('package-info').change_version()<cr>", desc = "Change Package Version" },
|
||||
{ "<leader>pn", "<cmd>lua require('package-info').install()<cr>", desc = "Install New Dependency" },
|
||||
},
|
||||
},
|
||||
{
|
||||
"voldikss/vim-floaterm",
|
||||
optional = true,
|
||||
-- stylua: ignore
|
||||
keys = {
|
||||
{ "<leader>pp", "<cmd>FloatermNew --disposable --name=lazynpm --opener=edit --titleposition=center --height=0.85 --width=0.85 --cwd=<root> lazynpm<CR>", desc = "Lazynpm", },
|
||||
},
|
||||
},
|
||||
{
|
||||
"folke/which-key.nvim",
|
||||
opts = {
|
||||
defaults = {
|
||||
["<leader>p"] = { name = " packages" },
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
return {
|
||||
"TobinPalmer/rayso.nvim",
|
||||
cmd = { "Rayso" },
|
||||
keys = {
|
||||
{ "<leader>cS", "<cmd>Rayso<cr>", mode = { "n" }, desc = "Screenshot Code" },
|
||||
{ "<leader>cS", "<cmd>'<,'>Rayso<cr>", mode = { "v" }, desc = "Screenshot Selection" },
|
||||
},
|
||||
opts = {
|
||||
open_cmd = "librewolf",
|
||||
},
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
return {
|
||||
"bennypowers/nvim-regexplainer",
|
||||
dependencies = {
|
||||
"MunifTanjim/nui.nvim",
|
||||
},
|
||||
opts = {
|
||||
auto = "true",
|
||||
},
|
||||
-- stylua: ignore
|
||||
keys = {
|
||||
{
|
||||
"gR",
|
||||
function()
|
||||
require("regexplainer").show()
|
||||
end,
|
||||
desc = "Regexplainer",
|
||||
},
|
||||
},
|
||||
}
|
||||
@@ -0,0 +1,67 @@
|
||||
return {
|
||||
{
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
opts = function(_, opts)
|
||||
if type(opts.ensure_installed) == "table" then
|
||||
vim.list_extend(opts.ensure_installed, { "http" })
|
||||
end
|
||||
end,
|
||||
},
|
||||
{
|
||||
"rest-nvim/rest.nvim",
|
||||
dependencies = {
|
||||
{
|
||||
"gennaro-tedesco/nvim-jqx",
|
||||
ft = { "json", "yaml" },
|
||||
},
|
||||
},
|
||||
ft = { "http" },
|
||||
opts = {
|
||||
-- Open request results in a horizontal split
|
||||
result_split_horizontal = true,
|
||||
-- Keep the http file buffer above|left when split horizontal|vertical
|
||||
result_split_in_place = false,
|
||||
-- Skip SSL verification, useful for unknown certificates
|
||||
skip_ssl_verification = false,
|
||||
-- Encode URL before making request
|
||||
encode_url = true,
|
||||
-- Highlight request on run
|
||||
highlight = {
|
||||
enabled = true,
|
||||
timeout = 150,
|
||||
},
|
||||
result = {
|
||||
-- toggle showing URL, HTTP info, headers at top the of result window
|
||||
show_url = true,
|
||||
show_http_info = true,
|
||||
show_headers = true,
|
||||
-- executables or functions for formatting response body [optional]
|
||||
-- set them to false if you want to disable them
|
||||
formatters = {
|
||||
json = "jq",
|
||||
html = function(body)
|
||||
return vim.fn.system({ "tidy", "-i", "-q", "-" }, body)
|
||||
end,
|
||||
},
|
||||
},
|
||||
-- Jump to request line on run
|
||||
jump_to_request = false,
|
||||
env_file = ".env",
|
||||
custom_dynamic_variables = {},
|
||||
yank_dry_run = true,
|
||||
},
|
||||
-- stylua: ignore
|
||||
keys = {
|
||||
{ "<leader>thp", function() require("rest-nvim").run(true) end, desc = "Preview Request" },
|
||||
{ "<leader>thr", function() require("rest-nvim").run() end, desc = "Run Request" },
|
||||
},
|
||||
},
|
||||
{
|
||||
"folke/which-key.nvim",
|
||||
opts = {
|
||||
defaults = {
|
||||
["<leader>th"] = { name = "http" },
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
return {
|
||||
"chrisgrieser/nvim-early-retirement",
|
||||
event = "VeryLazy",
|
||||
opts = {
|
||||
retirementAgeMins = 30,
|
||||
ignoreUnsavedChangesBufs = false,
|
||||
},
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
return {
|
||||
"roobert/search-replace.nvim",
|
||||
opts = {
|
||||
default_replace_single_buffer_options = "gcI",
|
||||
default_replace_multi_buffer_options = "egcI",
|
||||
},
|
||||
-- stylua: ignore
|
||||
keys = {
|
||||
{ "<leader>srb", "<CMD>SearchReplaceSingleBufferVisualSelection<CR>", desc = "Buffer", mode = "v" },
|
||||
{ "<leader>srv", "<CMD>SearchReplaceWithinVisualSelection<CR>", desc = "Visual Selection", mode = "v" },
|
||||
{ "<leader>srw", "<CMD>SearchReplaceWithinVisualSelectionCWord<CR>", desc = "Word on Buffer", mode = "v" },
|
||||
|
||||
{ "<leader>srb", "<CMD>SearchReplaceSingleBufferOpen<CR>", desc = "Buffer", mode = "n" },
|
||||
{ "<leader>srw", "<CMD>SearchReplaceSingleBufferCWord<CR>", desc = "Word on Buffer", mode = "n" },
|
||||
{ "<leader>srW", "<CMD>SearchReplaceSingleBufferCWORD<CR>", desc = "WORD on Buffer", mode = "n" },
|
||||
{ "<leader>sre", "<CMD>SearchReplaceSingleBufferCExpr<CR>", desc = "Expression on Buffer", mode = "n" },
|
||||
{ "<leader>srf", "<CMD>SearchReplaceSingleBufferCFile<CR>", desc = "File on Buffer", mode = "n" },
|
||||
|
||||
-- { "n", "<leader>rbs", "<CMD>SearchReplaceMultiBufferSelections<CR>", desc = "Search and Replace in Multi Buffer Selections" },
|
||||
-- { "n", "<leader>rbo", "<CMD>SearchReplaceMultiBufferOpen<CR>", desc = "Search and Replace in Multi Buffer, Open" },
|
||||
-- { "n", "<leader>rbw", "<CMD>SearchReplaceMultiBufferCWord<CR>", desc = "Search and Replace in Multi Buffer (Current Word)" },
|
||||
-- { "n", "<leader>rbW", "<CMD>SearchReplaceMultiBufferCWORD<CR>", desc = "Search and Replace in Multi Buffer (Current WORD)" },
|
||||
-- { "n", "<leader>rbe", "<CMD>SearchReplaceMultiBufferCExpr<CR>", desc = "Search and Replace in Multi Buffer (Current Expression)" },
|
||||
-- { "n", "<leader>rbf", "<CMD>SearchReplaceMultiBufferCFile<CR>", desc = "Search and Replace in Multi Buffer (Current File)" },
|
||||
},
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
return {
|
||||
"mrjones2014/smart-splits.nvim",
|
||||
build = "./kitty/install-kittens.bash",
|
||||
-- stylua: ignore
|
||||
keys = {
|
||||
{ "<C-A-Left>", function() require("smart-splits").resize_left() end, desc = "Resize left", mode = "n" },
|
||||
{ "<C-A-Down>", function() require("smart-splits").resize_down() end, desc = "Resize down", mode = "n" },
|
||||
{ "<C-A-Up>", function() require("smart-splits").resize_up() end, desc = "Resize up", mode = "n" },
|
||||
{ "<C-A-Right>", function() require("smart-splits").resize_right() end, desc = "Resize right", mode = "n" },
|
||||
{ "<C-h>", function() require("smart-splits").move_cursor_left() end, desc = "Move cursor left", mode = "n" },
|
||||
{ "<C-j>", function() require("smart-splits").move_cursor_down() end, desc = "Move cursor down", mode = "n" },
|
||||
{ "<C-k>", function() require("smart-splits").move_cursor_up() end, desc = "Move cursor up", mode = "n" },
|
||||
{ "<C-l>", function() require("smart-splits").move_cursor_right() end, desc = "Move cursor right", mode = "n" },
|
||||
{ "<C-A-h>", function() require("smart-splits").swap_buf_left() end, desc = "Swap buffer left", mode = "n" },
|
||||
{ "<C-A-j>", function() require("smart-splits").swap_buf_down() end, desc = "Swap buffer down", mode = "n" },
|
||||
{ "<C-A-k>", function() require("smart-splits").swap_buf_up() end, desc = "Swap buffer up", mode = "n" },
|
||||
{ "<C-A-l>", function() require("smart-splits").swap_buf_right() end, desc = "Swap buffer right", mode = "n" },
|
||||
},
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
return {
|
||||
"cshuaimin/ssr.nvim",
|
||||
opts = {},
|
||||
-- stylua: ignore
|
||||
keys = {
|
||||
{ "<leader>srs", function() require("ssr").open() end, desc = "Structural" },
|
||||
},
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
return {
|
||||
"lambdalisue/suda.vim",
|
||||
-- stylua: ignore
|
||||
keys = {
|
||||
{ "<leader>W", ":SudaWrite<CR>", desc = "Suda Write" },
|
||||
},
|
||||
cmd = {
|
||||
"SudaRead",
|
||||
"SudaWrite",
|
||||
},
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
return {
|
||||
"akinsho/bufferline.nvim",
|
||||
dependencies = {
|
||||
"backdround/tabscope.nvim",
|
||||
opts = {},
|
||||
},
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
return {
|
||||
"nvim-telescope/telescope.nvim",
|
||||
dependencies = {
|
||||
"prochri/telescope-all-recent.nvim",
|
||||
dependencies = {
|
||||
"kkharji/sqlite.lua",
|
||||
},
|
||||
opts = {
|
||||
pickers = {
|
||||
["workspaces.nvim#workspaces"] = {
|
||||
disable = false,
|
||||
sorting = "frecency",
|
||||
},
|
||||
["project.nvim#projects"] = {
|
||||
disable = false,
|
||||
sorting = "frecency",
|
||||
},
|
||||
["yanky.nvim#yank_history"] = {
|
||||
disable = true,
|
||||
},
|
||||
["zoxide.nvim#zoxide"] = {
|
||||
disable = true,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
return {
|
||||
"piersolenski/telescope-import.nvim",
|
||||
opts = {},
|
||||
config = function()
|
||||
require("lazyvim.util").on_load("telescope.nvim", function()
|
||||
require("telescope").setup({
|
||||
extensions = {
|
||||
import = {
|
||||
insert_at_top = true,
|
||||
},
|
||||
},
|
||||
})
|
||||
require("telescope").load_extension("import")
|
||||
end)
|
||||
end,
|
||||
keys = {
|
||||
{ "<leader>sI", "<cmd>Telescope import<CR>", desc = "Imports" },
|
||||
},
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
return {
|
||||
"tsakirist/telescope-lazy.nvim",
|
||||
config = function()
|
||||
require("lazyvim.util").on_load("telescope.nvim", function()
|
||||
require("telescope").load_extension("lazy")
|
||||
end)
|
||||
end,
|
||||
keys = {
|
||||
{ "<leader>sp", "<cmd>Telescope lazy<CR>", desc = "Plugins (Lazy)" },
|
||||
},
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
return {
|
||||
"benfowler/telescope-luasnip.nvim",
|
||||
config = function()
|
||||
require("lazyvim.util").on_load("telescope.nvim", function()
|
||||
require("telescope").load_extension("luasnip")
|
||||
end)
|
||||
end,
|
||||
keys = {
|
||||
{ "<leader>sl", "<cmd>Telescope luasnip<CR>", desc = "Luasnip (Snippets)" },
|
||||
},
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
return {
|
||||
"dharmx/telescope-media.nvim",
|
||||
config = function()
|
||||
require("lazyvim.util").on_load("telescope.nvim", function()
|
||||
require("telescope").setup({
|
||||
extensions = {
|
||||
media = {
|
||||
backend = "ueberzug", -- image/gif backend
|
||||
},
|
||||
},
|
||||
})
|
||||
require("telescope").load_extension("media")
|
||||
end)
|
||||
end,
|
||||
keys = {
|
||||
{ "<leader>sM", "<cmd>Telescope media<CR>", desc = "Media" },
|
||||
},
|
||||
}
|
||||
@@ -0,0 +1,69 @@
|
||||
return {
|
||||
{
|
||||
"cljoly/telescope-repo.nvim",
|
||||
event = "VeryLazy",
|
||||
dependencies = {
|
||||
{
|
||||
"airblade/vim-rooter",
|
||||
init = function()
|
||||
vim.g["rooter_cd_cmd"] = "lcd"
|
||||
vim.g["rooter_silent_chdir"] = 1
|
||||
end,
|
||||
},
|
||||
{ "nvim-telescope/telescope.nvim" },
|
||||
{ "nvim-lua/plenary.nvim" },
|
||||
},
|
||||
opts = {},
|
||||
config = function()
|
||||
require("lazyvim.util").on_load("telescope.nvim", function()
|
||||
require("telescope").setup({
|
||||
extensions = {
|
||||
repo = {
|
||||
list = {
|
||||
fd_opts = {
|
||||
"--no-ignore-vcs",
|
||||
},
|
||||
search_dirs = {
|
||||
"~/Repos/",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
})
|
||||
require("telescope").load_extension("repo")
|
||||
end)
|
||||
end,
|
||||
-- stylua: ignore
|
||||
keys = {
|
||||
{ "<leader>fp", "<cmd>Telescope repo list<cr>", desc = "Projects (~/Repos)" },
|
||||
{ "<leader>fP", "<cmd>lua require'telescope'.extensions.repo.list{search_dirs = { '~/' }}<cr>", desc = "Projects (System)" },
|
||||
},
|
||||
},
|
||||
{
|
||||
"goolord/alpha-nvim",
|
||||
optional = true,
|
||||
opts = function(_, dashboard)
|
||||
local button = dashboard.button("r", " " .. " Repos", "<cmd>Telescope repo list<CR>")
|
||||
button.opts.hl = "AlphaButtons"
|
||||
button.opts.hl_shortcut = "AlphaShortcut"
|
||||
table.insert(dashboard.section.buttons.val, 4, button)
|
||||
end,
|
||||
},
|
||||
{
|
||||
"nvimdev/dashboard-nvim",
|
||||
optional = true,
|
||||
opts = function(_, opts)
|
||||
local projects = {
|
||||
action = "Telescope repo list",
|
||||
desc = " Repos",
|
||||
icon = " ",
|
||||
key = "r",
|
||||
}
|
||||
|
||||
projects.desc = projects.desc .. string.rep(" ", 43 - #projects.desc)
|
||||
projects.key_format = " %s"
|
||||
|
||||
table.insert(opts.config.center, 4, projects)
|
||||
end,
|
||||
},
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
return {
|
||||
{
|
||||
"debugloop/telescope-undo.nvim",
|
||||
opts = {},
|
||||
config = function()
|
||||
require("lazyvim.util").on_load("telescope.nvim", function()
|
||||
require("telescope").setup({
|
||||
extensions = {
|
||||
undo = {
|
||||
use_delta = true,
|
||||
side_by_side = true,
|
||||
layout_strategy = "vertical",
|
||||
layout_config = {
|
||||
preview_height = 0.6,
|
||||
},
|
||||
},
|
||||
},
|
||||
})
|
||||
require("telescope").load_extension("undo")
|
||||
end)
|
||||
end,
|
||||
keys = {
|
||||
{ "<leader>su", "<cmd>Telescope undo<cr>", desc = "Undos" },
|
||||
},
|
||||
},
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
return {
|
||||
"axieax/urlview.nvim",
|
||||
cmd = { "UrlView" },
|
||||
keys = { { "<leader>sU", "<cmd>UrlView<cr>", desc = "Search Urls" } },
|
||||
opts = {
|
||||
default_picker = "telescope",
|
||||
},
|
||||
}
|
||||
@@ -0,0 +1,56 @@
|
||||
return {
|
||||
{
|
||||
"natecraddock/workspaces.nvim",
|
||||
event = "VeryLazy",
|
||||
cmd = {
|
||||
"Telescope workspaces",
|
||||
"WorkspacesAdd",
|
||||
"WorkspacesAddDir",
|
||||
"WorkspacesRemove",
|
||||
"WorkspacesRename",
|
||||
"WorkspacesOpen",
|
||||
"WorkspacesList",
|
||||
"WorkspacesListDirs",
|
||||
},
|
||||
config = function()
|
||||
require("workspaces").setup({
|
||||
hooks = {
|
||||
open = { "Telescope find_files" },
|
||||
},
|
||||
})
|
||||
require("lazyvim.util").on_load("telescope.nvim", function()
|
||||
require("telescope").load_extension("workspaces")
|
||||
end)
|
||||
end,
|
||||
keys = {
|
||||
{ "<leader>fw", "<cmd>Telescope workspaces<cr>", desc = "Workspaces" },
|
||||
},
|
||||
},
|
||||
{
|
||||
"goolord/alpha-nvim",
|
||||
optional = true,
|
||||
opts = function(_, dashboard)
|
||||
local button = dashboard.button("w", " " .. " Workspaces", "<cmd>Telescope workspaces<CR>")
|
||||
button.opts.hl = "AlphaButtons"
|
||||
button.opts.hl_shortcut = "AlphaShortcut"
|
||||
table.insert(dashboard.section.buttons.val, 4, button)
|
||||
end,
|
||||
},
|
||||
{
|
||||
"nvimdev/dashboard-nvim",
|
||||
optional = true,
|
||||
opts = function(_, opts)
|
||||
local projects = {
|
||||
action = "Telescope workspaces",
|
||||
desc = " Workspaces",
|
||||
icon = " ",
|
||||
key = "w",
|
||||
}
|
||||
|
||||
projects.desc = projects.desc .. string.rep(" ", 43 - #projects.desc)
|
||||
projects.key_format = " %s"
|
||||
|
||||
table.insert(opts.config.center, 4, projects)
|
||||
end,
|
||||
},
|
||||
}
|
||||
@@ -0,0 +1,53 @@
|
||||
return {
|
||||
{
|
||||
"jvgrootveld/telescope-zoxide",
|
||||
config = function()
|
||||
require("lazyvim.util").on_load("telescope.nvim", function()
|
||||
require("telescope").setup({
|
||||
extensions = {
|
||||
zoxide = {
|
||||
mappings = {
|
||||
default = {
|
||||
after_action = function(selection)
|
||||
require("telescope.builtin").find_files({ cwd = selection.path })
|
||||
end,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
})
|
||||
require("telescope").load_extension("zoxide")
|
||||
end)
|
||||
end,
|
||||
keys = {
|
||||
{ "<leader>fz", "<cmd>Telescope zoxide list<CR>", desc = "Zoxide" },
|
||||
},
|
||||
},
|
||||
{
|
||||
"goolord/alpha-nvim",
|
||||
optional = true,
|
||||
opts = function(_, dashboard)
|
||||
local button = dashboard.button("z", " " .. " Zoxide", "<cmd>Telescope zoxide list <CR>")
|
||||
button.opts.hl = "AlphaButtons"
|
||||
button.opts.hl_shortcut = "AlphaShortcut"
|
||||
table.insert(dashboard.section.buttons.val, 5, button)
|
||||
end,
|
||||
},
|
||||
{
|
||||
"nvimdev/dashboard-nvim",
|
||||
optional = true,
|
||||
opts = function(_, opts)
|
||||
local zoxide = {
|
||||
action = "Telescope zoxide list",
|
||||
desc = " Zoxide",
|
||||
icon = " ",
|
||||
key = "z",
|
||||
}
|
||||
|
||||
zoxide.desc = zoxide.desc .. string.rep(" ", 43 - #zoxide.desc)
|
||||
zoxide.key_format = " %s"
|
||||
|
||||
table.insert(opts.config.center, 4, zoxide)
|
||||
end,
|
||||
},
|
||||
}
|
||||
@@ -0,0 +1,97 @@
|
||||
return {
|
||||
{
|
||||
"voldikss/vim-floaterm",
|
||||
cmd = { "FloatermNew", "FloatermToggle", "FloatermNext", "FloatermPrev", "FloatermLast", "FloatermFirst" },
|
||||
--stylua: ignore
|
||||
keys = {
|
||||
{ "<leader>Ts", "<cmd>FloatermNew --disposable --name=duaroot --opener=edit --titleposition=center --height=0.85 --width=0.85 --cwd=<root> dua i<CR>", desc = "Workspace Size (root dir)" },
|
||||
{ "<leader>TS", "<cmd>FloatermNew --disposable --name=duabuffer --opener=edit --titleposition=center --height=0.85 --width=0.85 --cwd=<buffer> dua i<CR>", desc = "Workspace Size (cwd)" },
|
||||
{ "<A-e>", "<cmd>FloatermNew --disposable --name=yaziroot --opener=edit --titleposition=center --height=0.85 --width=0.85 --cwd=<root> yazi<CR>", desc = "File Explorer (root dir)" },
|
||||
{ "<leader>gg", "<cmd>FloatermNew --disposable --name=lazygitroot --opener=edit --titleposition=center --height=0.85 --width=0.85 --cwd=<root> lazygit<CR>", desc = "Lazygit (root dir)" },
|
||||
{ "<leader>gG", "<cmd>FloatermNew --disposable --name=lazygitbuffer --opener=edit --titleposition=center --height=0.85 --width=0.85 --cwd=<buffer> lazygit<CR>", desc = "Lazygit (cwd)" },
|
||||
{ "<leader>Td", "<cmd>FloatermNew --disposable --name=lazydocker --opener=edit --titleposition=center --height=0.85 --width=0.85 lazydocker<CR>", desc = "Lazydocker" },
|
||||
{ "<leader>Tb", "<cmd>FloatermNew --disposable --name=btop --opener=edit --titleposition=center --height=0.85 --width=0.85 btop<CR>", desc = "Btop" },
|
||||
{ "<leader>fd", "<cmd>FloatermNew --disposable --name=dots --opener=edit --titleposition=center --height=0.85 --width=0.85 dots<CR>", desc = "Dotfiles" },
|
||||
{ "<leader>Tn", "<cmd>FloatermNew --disposable --name=navi --opener=edit --titleposition=center --height=0.85 --width=0.85 pages<CR>", desc = "Navi Pages" },
|
||||
{ "<leader>Tp", "<cmd>FloatermNew --disposable --name=proc --opener=edit --titleposition=center --height=0.85 --width=0.85 proc<CR>", desc = "Systemd Processes" },
|
||||
{ "<leader>TB", "<cmd>FloatermNew --disposable --name=bandwhich --opener=edit --titleposition=center --height=0.85 --width=0.85 bandwhich<CR>", desc = "Bandwidth" },
|
||||
{ "<leader>gF", "<cmd>FloatermNew --disposable --name=forgit --opener=edit --titleposition=center --height=0.85 --width=0.85 fgit<CR>", desc = "Forgit" },
|
||||
{ "<leader>gf", "<cmd>FloatermNew! --disposable --name=onefetch --opener=edit --titleposition=center --height=0.85 --width=0.85 --cwd=<root> gfetch<CR>", desc = "Gitfetch" },
|
||||
{ "<leader>cen", "<cmd>FloatermNew --name=node --opener=edit --titleposition=center --wintype=split --height=0.35 node<CR>", desc = "Node" },
|
||||
{ "<leader>cep", "<cmd>FloatermNew --name=python --opener=edit --titleposition=center --wintype=split --height=0.35 python<CR>", desc = "Python" },
|
||||
{ "<S-Right>", "<Esc><Esc><cmd>FloatermNext<CR>", mode = { "t" }, desc = "Next Terminal" },
|
||||
{ "<S-Left>", "<Esc><Esc><cmd>FloatermPrev<CR>", mode = { "t" }, desc = "Prev Terminal" },
|
||||
{ "<A-Right>", "<Esc><Esc><cmd>FloatermLast<CR>", mode = { "t" }, desc = "Last Terminal" },
|
||||
{ "<A-Left>", "<Esc><Esc><cmd>FloatermFirst<CR>", mode = { "t" }, desc = "First Terminal" },
|
||||
{ [[<c-\>]], "<cmd>FloatermToggle<cr>", mode = { "n", "t" }, desc = "Toggle Terminal" },
|
||||
{ "<leader>ftf", "<cmd>FloatermNew --name=floatroot --opener=edit --titleposition=center --height=0.85 --width=0.85 --cwd=<root><cr>", desc = "Floating (root dir)" },
|
||||
{ "<leader>ftF", "<cmd>FloatermNew --name=floatbuffer --opener=edit --titleposition=center --height=0.85 --width=0.85 --cwd=<buffer><cr>", desc = "Floating (cwd)" },
|
||||
{ "<leader>fts", "<cmd>FloatermNew --name=splitroot --opener=edit --titleposition=center --height=0.35 --wintype=split --cwd=<root><cr>", desc = "Split (root dir)" },
|
||||
{ "<leader>ftS", "<cmd>FloatermNew --name=splitbuffer --opener=edit --titleposition=center --height=0.35 --wintype=split --cwd=<buffer><cr>", desc = "Split (cwd)" },
|
||||
},
|
||||
},
|
||||
{
|
||||
"dawsers/telescope-floaterm.nvim",
|
||||
config = function()
|
||||
require("lazyvim.util").on_load("telescope.nvim", function()
|
||||
require("telescope").load_extension("floaterm")
|
||||
end)
|
||||
end,
|
||||
keys = {
|
||||
{ "<c-/>", "<cmd>Telescope floaterm<cr>", desc = "Terminals" },
|
||||
},
|
||||
},
|
||||
{
|
||||
"folke/which-key.nvim",
|
||||
opts = {
|
||||
defaults = {
|
||||
["<leader>ce"] = { name = "r[e]pl" },
|
||||
["<leader>ft"] = { name = "terminals" },
|
||||
["<leader>T"] = { name = " tools" },
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
"folke/edgy.nvim",
|
||||
optional = true,
|
||||
opts = function(_, opts)
|
||||
table.insert(opts.bottom, {
|
||||
ft = "floaterm",
|
||||
title = "Floaterm",
|
||||
size = { height = 0.4 },
|
||||
filter = function(buf, win)
|
||||
return vim.api.nvim_win_get_config(win).relative == ""
|
||||
end,
|
||||
})
|
||||
end,
|
||||
},
|
||||
{
|
||||
"goolord/alpha-nvim",
|
||||
optional = true,
|
||||
opts = function(_, dashboard)
|
||||
-- stylua: ignore
|
||||
local button = dashboard.button("G", " " .. " Git", "<cmd>FloatermNew --disposable --name=lazygitroot --opener=edit --titleposition=center --height=0.85 --width=0.85 --cwd=<root> lazygit<CR>")
|
||||
button.opts.hl = "AlphaButtons"
|
||||
button.opts.hl_shortcut = "AlphaShortcut"
|
||||
table.insert(dashboard.section.buttons.val, 7, button)
|
||||
return dashboard
|
||||
end,
|
||||
},
|
||||
{
|
||||
"nvimdev/dashboard-nvim",
|
||||
optional = true,
|
||||
opts = function(_, opts)
|
||||
local git = {
|
||||
action = "FloatermNew --disposable --name=lazygitroot --opener=edit --titleposition=center --height=0.85 --width=0.85 --cwd=<root> lazygit",
|
||||
desc = " Git",
|
||||
icon = " ",
|
||||
key = "G",
|
||||
}
|
||||
|
||||
git.desc = git.desc .. string.rep(" ", 43 - #git.desc)
|
||||
git.key_format = " %s"
|
||||
|
||||
table.insert(opts.config.center, 7, git)
|
||||
end,
|
||||
},
|
||||
}
|
||||
@@ -0,0 +1,58 @@
|
||||
return {
|
||||
{
|
||||
"akinsho/toggleterm.nvim",
|
||||
cmd = {
|
||||
"ToggleTerm",
|
||||
"ToggleTermSetName",
|
||||
"ToggleTermToggleAll",
|
||||
"ToggleTermSendVisualLines",
|
||||
"ToggleTermSendCurrentLine",
|
||||
"ToggleTermSendVisualSelection",
|
||||
},
|
||||
opts = {
|
||||
size = function(term)
|
||||
if term.direction == "horizontal" then
|
||||
return 30
|
||||
elseif term.direction == "vertical" then
|
||||
return vim.o.columns * 0.4
|
||||
end
|
||||
end,
|
||||
open_mapping = [[<c-\>]],
|
||||
hide_numbers = true, -- hide the number column in toggleterm buffers
|
||||
shade_filetypes = {},
|
||||
shade_terminals = true, -- NOTE: this option takes priority over highlights specified so if you specify Normal highlights you should set this to false
|
||||
shading_factor = "-10", -- the percentage by which to lighten terminal background, default: -30 (gets multiplied by -3 if background is light)
|
||||
start_in_insert = true,
|
||||
insert_mappings = true, -- whether or not the open mapping applies in insert mode
|
||||
terminal_mappings = true, -- whether or not the open mapping applies in the opened terminals
|
||||
persist_size = true,
|
||||
persist_mode = true, -- if set to true (default) the previous terminal mode will be remembered
|
||||
direction = "float",
|
||||
close_on_exit = true, -- close the terminal window when the process exits
|
||||
-- Change the default shell. Can be a string or a function returning a string
|
||||
shell = vim.o.shell,
|
||||
-- This field is only relevant if direction is set to 'float'
|
||||
float_opts = {
|
||||
-- The border key is *almost* the same as 'nvim_open_win'
|
||||
-- see :h nvim_open_win for details on borders however
|
||||
-- the 'curved' border is a custom border type
|
||||
-- not natively supported but implemented in this plugin.
|
||||
border = "curved",
|
||||
-- like `size`, width and height can be a number or function which is passed the current terminal
|
||||
highlights = { border = "Normal", background = "Normal" },
|
||||
winblend = 3,
|
||||
},
|
||||
},
|
||||
-- stylua: ignore
|
||||
keys = {
|
||||
{ [[<c-\>]], "<cmd>ToggleTerm<cr>", mode = "n", desc = "Toggle Terminal" },
|
||||
},
|
||||
},
|
||||
{
|
||||
"ryanmsnyder/toggleterm-manager.nvim",
|
||||
opts = {},
|
||||
keys = {
|
||||
{ "<c-/>", "<cmd>Telescope toggleterm_manager<cr>", desc = "Terminals" },
|
||||
},
|
||||
},
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
if vim.fn.has("nvim-0.10") == 1 then
|
||||
return {
|
||||
{
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
dependencies = {
|
||||
"nvim-treesitter/playground",
|
||||
},
|
||||
build = ":TSInstall query",
|
||||
opts = {
|
||||
playground = {
|
||||
enable = true,
|
||||
},
|
||||
query_linter = {
|
||||
enable = true,
|
||||
use_virtual_text = true,
|
||||
lint_events = { "BufWrite", "CursorHold" },
|
||||
},
|
||||
},
|
||||
keys = {
|
||||
{ "<leader>ciT", "<Cmd>TSHighlightCapturesUnderCursor<CR>", desc = "Treesitter Highlight Groups" },
|
||||
{ "<leader>cit", "<Cmd>TSPlaygroundToggle<CR>", desc = "Treesitter Playground" },
|
||||
},
|
||||
},
|
||||
{
|
||||
"folke/edgy.nvim",
|
||||
optional = true,
|
||||
opts = function(_, opts)
|
||||
opts.right = opts.right or {}
|
||||
table.insert(opts.right, {
|
||||
title = "TS Playground",
|
||||
ft = "tsplayground",
|
||||
pinned = true,
|
||||
open = "TSPlaygroundToggle",
|
||||
size = { width = 0.3 },
|
||||
})
|
||||
end,
|
||||
},
|
||||
}
|
||||
else
|
||||
vim.notify("Treesitter Playground only works with the nightly build")
|
||||
end
|
||||
@@ -0,0 +1,6 @@
|
||||
return {
|
||||
"sindrets/winshift.nvim",
|
||||
cmd = "WinShift",
|
||||
opts = { highlight_moving_win = true },
|
||||
keys = { { "<leader>ws", "<CMD>WinShift<CR>", desc = "Win Shift/Swap" } },
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
return {
|
||||
{
|
||||
"williamboman/mason.nvim",
|
||||
opts = function(_, opts)
|
||||
opts.ensure_installed = opts.ensure_installed or {}
|
||||
vim.list_extend(opts.ensure_installed, { "isort" })
|
||||
end,
|
||||
},
|
||||
{
|
||||
"stevearc/conform.nvim",
|
||||
opts = function(_, opts)
|
||||
opts.formatters_by_ft.python = opts.formatters_by_ft.python or {}
|
||||
table.insert(opts.formatters_by_ft.python, "isort")
|
||||
return opts
|
||||
end,
|
||||
},
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
return {
|
||||
{ import = "lazyvim.plugins.extras.formatting.prettier" },
|
||||
{
|
||||
"luckasRanarison/nvim-devdocs",
|
||||
optional = true,
|
||||
ensure_installed = {
|
||||
"prettier",
|
||||
},
|
||||
},
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
return {
|
||||
{
|
||||
"stevearc/conform.nvim",
|
||||
opts = function(_, opts)
|
||||
opts.formatters_by_ft.rust = opts.formatters_by_ft.rust or {}
|
||||
table.insert(opts.formatters_by_ft.rust, "rustfmt")
|
||||
return opts
|
||||
end,
|
||||
},
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
return {
|
||||
{
|
||||
"williamboman/mason.nvim",
|
||||
opts = function(_, opts)
|
||||
opts.ensure_installed = opts.ensure_installed or {}
|
||||
vim.list_extend(opts.ensure_installed, { "rustywind" })
|
||||
end,
|
||||
},
|
||||
{
|
||||
"stevearc/conform.nvim",
|
||||
opts = function(_, opts)
|
||||
--- Extend the conform plugin config and add given formatters
|
||||
---@param tbl table<string, conform.FormatterUnit[]> Table of filetype to formatters mappings
|
||||
local function add_formatters(tbl)
|
||||
for ft, formatters in pairs(tbl) do
|
||||
if opts.formatters_by_ft[ft] == nil then
|
||||
opts.formatters_by_ft[ft] = formatters
|
||||
else
|
||||
vim.list_extend(opts.formatters_by_ft[ft], formatters)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
add_formatters({
|
||||
["javascript"] = { "rustywind" },
|
||||
["javascriptreact"] = { "rustywind" },
|
||||
["typescript"] = { "rustywind" },
|
||||
["typescriptreact"] = { "rustywind" },
|
||||
["vue"] = { "rustywind" },
|
||||
["html"] = { "rustywind" },
|
||||
})
|
||||
end,
|
||||
},
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
return {
|
||||
{
|
||||
"williamboman/mason.nvim",
|
||||
opts = function(_, opts)
|
||||
opts.ensure_installed = opts.ensure_installed or {}
|
||||
vim.list_extend(opts.ensure_installed, { "sqlfmt" })
|
||||
end,
|
||||
},
|
||||
{
|
||||
"stevearc/conform.nvim",
|
||||
opts = function(_, opts)
|
||||
--- Extend the conform plugin config and add given formatters
|
||||
---@param tbl table<string, conform.FormatterUnit[]> Table of filetype to formatters mappings
|
||||
local function add_formatters(tbl)
|
||||
for ft, formatters in pairs(tbl) do
|
||||
if opts.formatters_by_ft[ft] == nil then
|
||||
opts.formatters_by_ft[ft] = formatters
|
||||
else
|
||||
vim.list_extend(opts.formatters_by_ft[ft], formatters)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
add_formatters({
|
||||
["sql"] = { "sqlfmt" },
|
||||
["plsql"] = { "sqlfmt" },
|
||||
["mysql"] = { "sqlfmt" },
|
||||
})
|
||||
end,
|
||||
},
|
||||
}
|
||||
@@ -0,0 +1,47 @@
|
||||
return {
|
||||
{
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
opts = function(_, opts)
|
||||
if type(opts.ensure_installed) == "table" then
|
||||
vim.list_extend(opts.ensure_installed, { "yaml" })
|
||||
end
|
||||
end,
|
||||
},
|
||||
{
|
||||
"williamboman/mason.nvim",
|
||||
opts = function(_, opts)
|
||||
opts.ensure_installed = opts.ensure_installed or {}
|
||||
vim.list_extend(opts.ensure_installed, { "ansible-lint", "ansible-language-server" })
|
||||
end,
|
||||
},
|
||||
{
|
||||
"neovim/nvim-lspconfig",
|
||||
opts = {
|
||||
servers = {
|
||||
ansiblels = {},
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
"mfussenegger/nvim-lint",
|
||||
opts = {
|
||||
linters_by_ft = {
|
||||
ansible = { "ansible-lint" },
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
"mfussenegger/nvim-ansible",
|
||||
-- stylua: ignore
|
||||
keys = {
|
||||
{ "<leader>tp", function() require("ansible").run() end, desc = "Run Ansible Playbooks" },
|
||||
},
|
||||
},
|
||||
{
|
||||
"luckasRanarison/nvim-devdocs",
|
||||
optional = true,
|
||||
ensure_installed = {
|
||||
"ansible",
|
||||
},
|
||||
},
|
||||
}
|
||||
@@ -0,0 +1,44 @@
|
||||
return {
|
||||
{
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
opts = function(_, opts)
|
||||
if type(opts.ensure_installed) == "table" then
|
||||
vim.list_extend(opts.ensure_installed, { "bash" })
|
||||
end
|
||||
end,
|
||||
},
|
||||
{
|
||||
"neovim/nvim-lspconfig",
|
||||
opts = {
|
||||
servers = {
|
||||
bashls = {},
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
"williamboman/mason.nvim",
|
||||
opts = function(_, opts)
|
||||
opts.ensure_installed = opts.ensure_installed or {}
|
||||
vim.list_extend(opts.ensure_installed, { "bash-language-server" })
|
||||
end,
|
||||
},
|
||||
{
|
||||
"nvim-neotest/neotest",
|
||||
optional = true,
|
||||
dependencies = {
|
||||
"rcasia/neotest-bash",
|
||||
},
|
||||
opts = {
|
||||
adapters = {
|
||||
["neotest-bash"] = {},
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
"luckasRanarison/nvim-devdocs",
|
||||
optional = true,
|
||||
ensure_installed = {
|
||||
"bash",
|
||||
},
|
||||
},
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
return {
|
||||
{ import = "lazyvim.plugins.extras.lang.docker" },
|
||||
{
|
||||
"luckasRanarison/nvim-devdocs",
|
||||
optional = true,
|
||||
ensure_installed = {
|
||||
"docker",
|
||||
},
|
||||
},
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
return {
|
||||
{
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
opts = function(_, opts)
|
||||
if type(opts.ensure_installed) == "table" then
|
||||
vim.list_extend(opts.ensure_installed, {
|
||||
"git_config",
|
||||
"git_rebase",
|
||||
"gitattributes",
|
||||
"gitcommit",
|
||||
"gitignore",
|
||||
})
|
||||
end
|
||||
end,
|
||||
},
|
||||
{
|
||||
"luckasRanarison/nvim-devdocs",
|
||||
optional = true,
|
||||
ensure_installed = {
|
||||
"git",
|
||||
},
|
||||
},
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
return {
|
||||
{ import = "lazyvim.plugins.extras.lang.go" },
|
||||
{
|
||||
"ray-x/go.nvim",
|
||||
dependencies = {
|
||||
"ray-x/guihua.lua",
|
||||
"neovim/nvim-lspconfig",
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
},
|
||||
opts = {},
|
||||
event = { "CmdlineEnter" },
|
||||
ft = { "go", "gomod" },
|
||||
build = ':lua require("go.install").update_all_sync()',
|
||||
},
|
||||
{
|
||||
"luckasRanarison/nvim-devdocs",
|
||||
optional = true,
|
||||
ensure_installed = {
|
||||
"go",
|
||||
},
|
||||
},
|
||||
}
|
||||
@@ -0,0 +1,90 @@
|
||||
return {
|
||||
{
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
opts = function(_, opts)
|
||||
if type(opts.ensure_installed) == "table" then
|
||||
vim.list_extend(opts.ensure_installed, { "haskell" })
|
||||
end
|
||||
end,
|
||||
},
|
||||
{
|
||||
"mrcjkb/haskell-tools.nvim",
|
||||
version = "^3",
|
||||
ft = { "haskell", "lhaskell", "cabal", "cabalproject" },
|
||||
dependencies = {
|
||||
{ "nvim-telescope/telescope.nvim", optional = true },
|
||||
},
|
||||
config = function()
|
||||
require("lazyvim.util").on_load("telescope.nvim", function()
|
||||
require("telescope").load_extension("ht")
|
||||
end)
|
||||
end,
|
||||
},
|
||||
{
|
||||
"williamboman/mason.nvim",
|
||||
opts = function(_, opts)
|
||||
opts.ensure_installed = opts.ensure_installed or {}
|
||||
vim.list_extend(opts.ensure_installed, { "haskell-language-server" })
|
||||
end,
|
||||
},
|
||||
{
|
||||
"mfussenegger/nvim-dap",
|
||||
optional = true,
|
||||
dependencies = {
|
||||
{
|
||||
"williamboman/mason.nvim",
|
||||
opts = function(_, opts)
|
||||
opts.ensure_installed = opts.ensure_installed or {}
|
||||
vim.list_extend(opts.ensure_installed, { "haskell-debug-adapter" })
|
||||
end,
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
"nvim-neotest/neotest",
|
||||
optional = true,
|
||||
dependencies = { "mrcjkb/neotest-haskell" },
|
||||
opts = {
|
||||
adapters = {
|
||||
["neotest-haskell"] = {},
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
"mrcjkb/haskell-snippets.nvim",
|
||||
dependencies = { "L3MON4D3/LuaSnip" },
|
||||
config = function()
|
||||
local haskell_snippets = require("haskell-snippets").all
|
||||
require("luasnip").add_snippets("haskell", haskell_snippets, { key = "haskell" })
|
||||
end,
|
||||
},
|
||||
{
|
||||
"luc-tielen/telescope_hoogle",
|
||||
ft = { "haskell", "lhaskell", "cabal", "cabalproject" },
|
||||
dependencies = { "nvim-telescope/telescope.nvim" },
|
||||
config = function()
|
||||
require("lazyvim.util").on_load("telescope.nvim", function()
|
||||
require("telescope").load_extension("hoogle")
|
||||
end)
|
||||
end,
|
||||
},
|
||||
-- Make sure lspconfig doesn't start hls,
|
||||
-- as it conflicts with haskell-tools
|
||||
{
|
||||
"neovim/nvim-lspconfig",
|
||||
opts = {
|
||||
setup = {
|
||||
hls = function()
|
||||
return true
|
||||
end,
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
"luckasRanarison/nvim-devdocs",
|
||||
optional = true,
|
||||
ensure_installed = {
|
||||
"haskell-9",
|
||||
},
|
||||
},
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
return {
|
||||
{
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
opts = function(_, opts)
|
||||
if type(opts.ensure_installed) == "table" then
|
||||
vim.list_extend(opts.ensure_installed, { "julia" })
|
||||
end
|
||||
end,
|
||||
},
|
||||
{
|
||||
"neovim/nvim-lspconfig",
|
||||
opts = {
|
||||
servers = {
|
||||
julials = {},
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
"williamboman/mason.nvim",
|
||||
opts = function(_, opts)
|
||||
opts.ensure_installed = opts.ensure_installed or {}
|
||||
vim.list_extend(opts.ensure_installed, { "julia-lsp" })
|
||||
end,
|
||||
},
|
||||
{
|
||||
"hrsh7th/nvim-cmp",
|
||||
dependencies = {
|
||||
"amarakon/nvim-cmp-lua-latex-symbols",
|
||||
},
|
||||
opts = function(_, opts)
|
||||
table.insert(opts.sources, { name = "lua-latex-symbols", option = { cache = true } })
|
||||
end,
|
||||
},
|
||||
{
|
||||
"luckasRanarison/nvim-devdocs",
|
||||
optional = true,
|
||||
ensure_installed = {
|
||||
"julia",
|
||||
},
|
||||
},
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
return {
|
||||
{ import = "lazyvim.plugins.extras.lang.markdown" },
|
||||
{
|
||||
"gaoDean/autolist.nvim",
|
||||
ft = {
|
||||
"markdown",
|
||||
"text",
|
||||
"tex",
|
||||
"plaintex",
|
||||
"norg",
|
||||
},
|
||||
opts = {},
|
||||
keys = {
|
||||
{ "<tab>", "<cmd>AutolistTab<cr>", mode = { "i" } },
|
||||
{ "<s-tab>", "<cmd>AutolistShiftTab<cr>", mode = { "i" } },
|
||||
{ "<CR>", "<CR><cmd>AutolistNewBullet<cr>", mode = { "i" } },
|
||||
{ "o", "o<cmd>AutolistNewBullet<cr>", mode = { "n" } },
|
||||
{ "O", "O<cmd>AutolistNewBulletBefore<cr>", mode = { "n" } },
|
||||
{ "<CR>", "<cmd>AutolistToggleCheckbox<cr><CR>", mode = { "n" } },
|
||||
{ "<C-r>", "<cmd>AutolistRecalculate<cr>", mode = { "n" } },
|
||||
|
||||
{ "].", "<cmd>AutolistCycleNext<cr>", mode = { "n" }, desc = "Next List Type" },
|
||||
{ "[.", "<cmd>AutolistCyclePrev<cr>", mode = { "n" }, desc = "Prev List Type" },
|
||||
|
||||
{ ">>", ">><cmd>AutolistRecalculate<cr>", mode = { "n" } },
|
||||
{ "<<", "<<<cmd>AutolistRecalculate<cr>", mode = { "n" } },
|
||||
{ "dd", "dd<cmd>AutolistRecalculate<cr>", mode = { "n" } },
|
||||
{ "d", "d<cmd>AutolistRecalculate<cr>", mode = { "v" } },
|
||||
},
|
||||
},
|
||||
{
|
||||
"luckasRanarison/nvim-devdocs",
|
||||
optional = true,
|
||||
ensure_installed = {
|
||||
"markdown",
|
||||
},
|
||||
},
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
return {
|
||||
{
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
opts = function(_, opts)
|
||||
vim.list_extend(opts.ensure_installed, {
|
||||
"nix",
|
||||
})
|
||||
end,
|
||||
},
|
||||
{
|
||||
"williamboman/mason.nvim",
|
||||
opts = function(_, opts)
|
||||
vim.list_extend(opts.ensure_installed, {
|
||||
"nil",
|
||||
})
|
||||
end,
|
||||
},
|
||||
{
|
||||
"neovim/nvim-lspconfig",
|
||||
opts = {
|
||||
servers = {
|
||||
nil_ls = {},
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
"luckasRanarison/nvim-devdocs",
|
||||
optional = true,
|
||||
ensure_installed = {
|
||||
"nix",
|
||||
},
|
||||
},
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
return {
|
||||
{ import = "lazyvim.plugins.extras.lang.omnisharp" },
|
||||
{
|
||||
"nvim-neotest/neotest",
|
||||
optiona = true,
|
||||
dependencies = {
|
||||
"Issafalcon/neotest-dotnet",
|
||||
},
|
||||
opts = {
|
||||
adapters = {
|
||||
["neotest-dotnet"] = {},
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
return {
|
||||
{ import = "lazyvim.plugins.extras.lang.python" },
|
||||
{
|
||||
"luckasRanarison/nvim-devdocs",
|
||||
optional = true,
|
||||
ensure_installed = {
|
||||
"python-3.11",
|
||||
},
|
||||
},
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
return {
|
||||
{ import = "lazyvim.plugins.extras.lang.rust" },
|
||||
{
|
||||
"luckasRanarison/nvim-devdocs",
|
||||
optional = true,
|
||||
ensure_installed = {
|
||||
"rust",
|
||||
},
|
||||
},
|
||||
}
|
||||
@@ -0,0 +1,95 @@
|
||||
local sql_ft = { "sql", "mysql", "plsql" }
|
||||
|
||||
return {
|
||||
{
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
optional = true,
|
||||
opts = function(_, opts)
|
||||
if type(opts.ensure_installed) == "table" then
|
||||
vim.list_extend(opts.ensure_installed, { "sql" })
|
||||
end
|
||||
end,
|
||||
},
|
||||
{
|
||||
"folke/edgy.nvim",
|
||||
optional = true,
|
||||
opts = function(_, opts)
|
||||
opts.right = opts.right or {}
|
||||
table.insert(opts.right, {
|
||||
title = "Database",
|
||||
ft = "dbui",
|
||||
pinned = true,
|
||||
open = function()
|
||||
vim.cmd("DBUI")
|
||||
end,
|
||||
})
|
||||
|
||||
opts.bottom = opts.bottom or {}
|
||||
table.insert(opts.bottom, {
|
||||
title = "DB Query Result",
|
||||
ft = "dbout",
|
||||
})
|
||||
end,
|
||||
},
|
||||
{
|
||||
"tpope/vim-dadbod",
|
||||
cmd = { "DBUI", "DBUIToggle", "DBUIAddConnection", "DBUIFindBuffer" },
|
||||
dependencies = {
|
||||
{ "kristijanhusak/vim-dadbod-ui" },
|
||||
{ "kristijanhusak/vim-dadbod-completion", ft = sql_ft },
|
||||
{ "jsborjesson/vim-uppercase-sql", ft = sql_ft },
|
||||
},
|
||||
init = function()
|
||||
vim.g.db_ui_save_location = vim.fn.stdpath("data") .. "/db_ui"
|
||||
vim.g.db_ui_use_nerd_fonts = true
|
||||
vim.g.db_ui_execute_on_save = false
|
||||
vim.g.db_ui_use_nvim_notify = true
|
||||
|
||||
vim.api.nvim_create_autocmd("FileType", {
|
||||
pattern = sql_ft,
|
||||
callback = function()
|
||||
---@diagnostic disable-next-line: missing-fields
|
||||
require("cmp").setup.buffer({ sources = { { name = "vim-dadbod-completion" } } })
|
||||
end,
|
||||
})
|
||||
end,
|
||||
keys = {
|
||||
{ "<leader>Da", "<cmd>DBUIAddConnection<cr>", desc = "Add Connection" },
|
||||
{ "<leader>Du", "<cmd>DBUIToggle<cr>", desc = "Toggle UI" },
|
||||
{ "<leader>Df", "<cmd>DBUIFindBuffer<cr>", desc = "Find Buffer" },
|
||||
{ "<leader>Dr", "<cmd>DBUIRenameBuffer<cr>", desc = "Rename Buffer" },
|
||||
{ "<leader>Dq", "<cmd>DBUILastQueryInfo<cr>", desc = "Last Query Info" },
|
||||
},
|
||||
},
|
||||
{
|
||||
"folke/which-key.nvim",
|
||||
opts = {
|
||||
defaults = {
|
||||
["<leader>D"] = { name = " database" },
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
"williamboman/mason.nvim",
|
||||
opts = function(_, opts)
|
||||
opts.ensure_installed = opts.ensure_installed or {}
|
||||
vim.list_extend(opts.ensure_installed, { "sqlls" })
|
||||
end,
|
||||
},
|
||||
{
|
||||
"neovim/nvim-lspconfig",
|
||||
opts = {
|
||||
servers = {
|
||||
sqlls = {},
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
"luckasRanarison/nvim-devdocs",
|
||||
optional = true,
|
||||
ensure_installed = {
|
||||
"sqlite",
|
||||
"postgresql-16",
|
||||
},
|
||||
},
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
return {
|
||||
{ import = "pugins.extras.lang.web.typescript-extended" },
|
||||
{ import = "plugins.extras.lang.web.html" },
|
||||
{ import = "plugins.extras.lang.web.css" },
|
||||
{
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
opts = function(_, opts)
|
||||
if type(opts.ensure_installed) == "table" then
|
||||
vim.list_extend(opts.ensure_installed, { "angular" })
|
||||
end
|
||||
end,
|
||||
},
|
||||
{
|
||||
"neovim/nvim-lspconfig",
|
||||
opts = {
|
||||
servers = {
|
||||
angularls = {},
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
"williamboman/mason.nvim",
|
||||
opts = function(_, opts)
|
||||
opts.ensure_installed = opts.ensure_installed or {}
|
||||
vim.list_extend(opts.ensure_installed, { "angular-language-server" })
|
||||
end,
|
||||
},
|
||||
{
|
||||
"luckasRanarison/nvim-devdocs",
|
||||
optional = true,
|
||||
ensure_installed = {
|
||||
"angular",
|
||||
},
|
||||
},
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
return {
|
||||
{
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
opts = function(_, opts)
|
||||
if type(opts.ensure_installed) == "table" then
|
||||
vim.list_extend(opts.ensure_installed, { "astro" })
|
||||
end
|
||||
end,
|
||||
},
|
||||
{
|
||||
"neovim/nvim-lspconfig",
|
||||
opts = {
|
||||
servers = {
|
||||
astro = {},
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
"williamboman/mason.nvim",
|
||||
opts = function(_, opts)
|
||||
opts.ensure_installed = opts.ensure_installed or {}
|
||||
vim.list_extend(opts.ensure_installed, { "astro-language-server" })
|
||||
end,
|
||||
},
|
||||
{
|
||||
"luckasRanarison/nvim-devdocs",
|
||||
optional = true,
|
||||
ensure_installed = {
|
||||
"astro",
|
||||
},
|
||||
},
|
||||
}
|
||||
@@ -0,0 +1,53 @@
|
||||
return {
|
||||
{
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
opts = function(_, opts)
|
||||
if type(opts.ensure_installed) == "table" then
|
||||
vim.list_extend(opts.ensure_installed, { "css", "scss" })
|
||||
end
|
||||
end,
|
||||
},
|
||||
{
|
||||
"neovim/nvim-lspconfig",
|
||||
opts = {
|
||||
servers = {
|
||||
cssmodules_ls = {},
|
||||
cssls = {
|
||||
lint = {
|
||||
compatibleVendorPrefixes = "ignore",
|
||||
vendorPrefix = "ignore",
|
||||
unknownVendorSpecificProperties = "ignore",
|
||||
|
||||
-- unknownProperties = "ignore", -- duplicate with stylelint
|
||||
|
||||
duplicateProperties = "warning",
|
||||
emptyRules = "warning",
|
||||
importStatement = "warning",
|
||||
zeroUnits = "warning",
|
||||
fontFaceProperties = "warning",
|
||||
hexColorLength = "warning",
|
||||
argumentsInColorFunction = "warning",
|
||||
unknownAtRules = "warning",
|
||||
ieHack = "warning",
|
||||
propertyIgnoredDueToDisplay = "warning",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
"williamboman/mason.nvim",
|
||||
opts = function(_, opts)
|
||||
opts.ensure_installed = opts.ensure_installed or {}
|
||||
vim.list_extend(opts.ensure_installed, { "cssmodules-language-server", "css-lsp" })
|
||||
end,
|
||||
},
|
||||
{
|
||||
"luckasRanarison/nvim-devdocs",
|
||||
optional = true,
|
||||
ensure_installed = {
|
||||
"css",
|
||||
"sass",
|
||||
},
|
||||
},
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
return {
|
||||
{ import = "plugins.extras.lang.web.typescript-extended" },
|
||||
{
|
||||
"williamboman/mason.nvim",
|
||||
opts = function(_, opts)
|
||||
vim.list_extend(opts.ensure_installed, {
|
||||
"graphql-language-service-cli",
|
||||
})
|
||||
end,
|
||||
},
|
||||
{
|
||||
"neovim/nvim-lspconfig",
|
||||
dependencies = {},
|
||||
opts = {
|
||||
servers = {
|
||||
graphql = {
|
||||
filetypes = { "graphql", "javascript", "javascriptreact", "typescript", "typescriptreact" },
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
return {
|
||||
{
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
opts = function(_, opts)
|
||||
vim.list_extend(opts.ensure_installed, {
|
||||
"html",
|
||||
})
|
||||
end,
|
||||
},
|
||||
{
|
||||
"neovim/nvim-lspconfig",
|
||||
opts = {
|
||||
servers = {
|
||||
emmet_language_server = {},
|
||||
html = {},
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
"williamboman/mason.nvim",
|
||||
opts = function(_, opts)
|
||||
opts.ensure_installed = opts.ensure_installed or {}
|
||||
vim.list_extend(opts.ensure_installed, { "emmet-language-server", "html-lsp" })
|
||||
end,
|
||||
},
|
||||
{
|
||||
"luckasRanarison/nvim-devdocs",
|
||||
optional = true,
|
||||
ensure_installed = {
|
||||
"html",
|
||||
},
|
||||
},
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
return {
|
||||
{
|
||||
"neovim/nvim-lspconfig",
|
||||
opts = {
|
||||
servers = {
|
||||
htmx = {},
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
"williamboman/mason.nvim",
|
||||
opts = function(_, opts)
|
||||
opts.ensure_installed = opts.ensure_installed or {}
|
||||
vim.list_extend(opts.ensure_installed, { "htmx-lsp" })
|
||||
end,
|
||||
},
|
||||
}
|
||||
Loaded 100 of 472 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user