Stylua formatting pass

This commit is contained in:
2025-12-22 14:40:40 +00:00
parent 4263e3ccef
commit bb09e987b0
9 changed files with 70 additions and 53 deletions

View File

@@ -177,42 +177,56 @@ return {
{ "K", vim.lsp.buf.hover, desc = "[K] Hover Documentation" },
{
"gd",
function() require("telescope.builtin").lsp_definitions() end,
desc = "[G]oto [D]efinition"
function()
require("telescope.builtin").lsp_definitions()
end,
desc = "[G]oto [D]efinition",
},
{ "ge", vim.lsp.buf.declaration, desc = "[G]oto D[e]claration" },
{
"gi",
function() require("telescope.builtin").lsp_implementations() end,
desc = "[G]oto [I]mplementation"
function()
require("telescope.builtin").lsp_implementations()
end,
desc = "[G]oto [I]mplementation",
},
{
"gr",
function() require("telescope.builtin").lsp_references() end,
desc = "[G]oto [R]eferences"
function()
require("telescope.builtin").lsp_references()
end,
desc = "[G]oto [R]eferences",
},
{
"gt",
function() require("telescope.builtin").lsp_type_definitions() end,
desc = "[G]oto [T]ype"
function()
require("telescope.builtin").lsp_type_definitions()
end,
desc = "[G]oto [T]ype",
},
{
"<leader>ss",
function() require("telescope.builtin").lsp_document_symbols() end,
desc = "[S]earch [S]ymbols"
function()
require("telescope.builtin").lsp_document_symbols()
end,
desc = "[S]earch [S]ymbols",
},
{
"<leader>ws",
function() require("telescope.builtin").lsp_dynamic_workspace_symbols() end,
desc = "[W]orkspace [S]ymbols"
function()
require("telescope.builtin").lsp_dynamic_workspace_symbols()
end,
desc = "[W]orkspace [S]ymbols",
},
{ "<leader>r", vim.lsp.buf.rename, desc = "[R]ename" },
{ "<leader>ca", vim.lsp.buf.code_action, desc = "[C]ode [A]ction" },
{ "<leader>f", vim.lsp.buf.format, desc = "[F]ormat" },
{
"<leader>ci",
function() vim.lsp.inlay_hint.enable(not vim.lsp.inlay_hint.is_enabled()) end,
desc = "[I]nlay Hints"
function()
vim.lsp.inlay_hint.enable(not vim.lsp.inlay_hint.is_enabled())
end,
desc = "[I]nlay Hints",
},
},
neogen = {
@@ -491,7 +505,7 @@ return {
vim.notify("Rainbow Delimiters: OFF", vim.log.levels.INFO)
end
end,
desc = "Toggle Rainbow Delimiters"
desc = "Toggle Rainbow Delimiters",
},
},
undotree = {

View File

@@ -4,6 +4,6 @@ for _, map in ipairs(keys) do
vim.keymap.set("n", map[1], map[2], {
noremap = true,
silent = true,
desc = map.desc
desc = map.desc,
})
end

View File

@@ -13,14 +13,14 @@ return {
preset = "super-tab",
},
appearance = {
nerd_font_variant = "mono"
nerd_font_variant = "mono",
},
completion = { documentation = { auto_show = true } },
sources = {
default = { "lsp", "path", "snippets", "buffer" },
},
fuzzy = { implementation = "prefer_rust_with_warning" }
fuzzy = { implementation = "prefer_rust_with_warning" },
},
opts_extend = { "sources.default" },
},
opts_extend = { "sources.default" }
}
}

View File

@@ -34,7 +34,10 @@ return { -- Non programming quality of life utilities go here
path = fallback_path,
})
vim.notify("Obsidian: 'Work_Notes' not found. Using fallback path.", vim.log.levels.WARN)
vim.notify(
"Obsidian: 'Work_Notes' not found. Using fallback path.",
vim.log.levels.WARN
)
end
return {

View File

@@ -15,7 +15,7 @@ return {
for _, map in ipairs(lsp_keys) do
vim.keymap.set("n", map[1], map[2], {
buffer = event.buf,
desc = "LSP: " .. map.desc
desc = "LSP: " .. map.desc,
})
end

View File

@@ -133,5 +133,5 @@ return { -- UI components and other visual elements are declared here
config = function()
require("rainbow-delimiters.setup").setup()
end,
}
},
}