mirror of
https://github.com/Cian-H/my_nvim_config.git
synced 2025-12-22 20:21:57 +00:00
Stylua formatting pass
This commit is contained in:
@@ -177,42 +177,56 @@ return {
|
|||||||
{ "K", vim.lsp.buf.hover, desc = "[K] Hover Documentation" },
|
{ "K", vim.lsp.buf.hover, desc = "[K] Hover Documentation" },
|
||||||
{
|
{
|
||||||
"gd",
|
"gd",
|
||||||
function() require("telescope.builtin").lsp_definitions() end,
|
function()
|
||||||
desc = "[G]oto [D]efinition"
|
require("telescope.builtin").lsp_definitions()
|
||||||
|
end,
|
||||||
|
desc = "[G]oto [D]efinition",
|
||||||
},
|
},
|
||||||
{ "ge", vim.lsp.buf.declaration, desc = "[G]oto D[e]claration" },
|
{ "ge", vim.lsp.buf.declaration, desc = "[G]oto D[e]claration" },
|
||||||
{
|
{
|
||||||
"gi",
|
"gi",
|
||||||
function() require("telescope.builtin").lsp_implementations() end,
|
function()
|
||||||
desc = "[G]oto [I]mplementation"
|
require("telescope.builtin").lsp_implementations()
|
||||||
|
end,
|
||||||
|
desc = "[G]oto [I]mplementation",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"gr",
|
"gr",
|
||||||
function() require("telescope.builtin").lsp_references() end,
|
function()
|
||||||
desc = "[G]oto [R]eferences"
|
require("telescope.builtin").lsp_references()
|
||||||
|
end,
|
||||||
|
desc = "[G]oto [R]eferences",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"gt",
|
"gt",
|
||||||
function() require("telescope.builtin").lsp_type_definitions() end,
|
function()
|
||||||
desc = "[G]oto [T]ype"
|
require("telescope.builtin").lsp_type_definitions()
|
||||||
|
end,
|
||||||
|
desc = "[G]oto [T]ype",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"<leader>ss",
|
"<leader>ss",
|
||||||
function() require("telescope.builtin").lsp_document_symbols() end,
|
function()
|
||||||
desc = "[S]earch [S]ymbols"
|
require("telescope.builtin").lsp_document_symbols()
|
||||||
|
end,
|
||||||
|
desc = "[S]earch [S]ymbols",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"<leader>ws",
|
"<leader>ws",
|
||||||
function() require("telescope.builtin").lsp_dynamic_workspace_symbols() end,
|
function()
|
||||||
desc = "[W]orkspace [S]ymbols"
|
require("telescope.builtin").lsp_dynamic_workspace_symbols()
|
||||||
|
end,
|
||||||
|
desc = "[W]orkspace [S]ymbols",
|
||||||
},
|
},
|
||||||
{ "<leader>r", vim.lsp.buf.rename, desc = "[R]ename" },
|
{ "<leader>r", vim.lsp.buf.rename, desc = "[R]ename" },
|
||||||
{ "<leader>ca", vim.lsp.buf.code_action, desc = "[C]ode [A]ction" },
|
{ "<leader>ca", vim.lsp.buf.code_action, desc = "[C]ode [A]ction" },
|
||||||
{ "<leader>f", vim.lsp.buf.format, desc = "[F]ormat" },
|
{ "<leader>f", vim.lsp.buf.format, desc = "[F]ormat" },
|
||||||
{
|
{
|
||||||
"<leader>ci",
|
"<leader>ci",
|
||||||
function() vim.lsp.inlay_hint.enable(not vim.lsp.inlay_hint.is_enabled()) end,
|
function()
|
||||||
desc = "[I]nlay Hints"
|
vim.lsp.inlay_hint.enable(not vim.lsp.inlay_hint.is_enabled())
|
||||||
|
end,
|
||||||
|
desc = "[I]nlay Hints",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
neogen = {
|
neogen = {
|
||||||
@@ -491,7 +505,7 @@ return {
|
|||||||
vim.notify("Rainbow Delimiters: OFF", vim.log.levels.INFO)
|
vim.notify("Rainbow Delimiters: OFF", vim.log.levels.INFO)
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
desc = "Toggle Rainbow Delimiters"
|
desc = "Toggle Rainbow Delimiters",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
undotree = {
|
undotree = {
|
||||||
|
|||||||
@@ -4,6 +4,6 @@ for _, map in ipairs(keys) do
|
|||||||
vim.keymap.set("n", map[1], map[2], {
|
vim.keymap.set("n", map[1], map[2], {
|
||||||
noremap = true,
|
noremap = true,
|
||||||
silent = true,
|
silent = true,
|
||||||
desc = map.desc
|
desc = map.desc,
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -13,14 +13,14 @@ return {
|
|||||||
preset = "super-tab",
|
preset = "super-tab",
|
||||||
},
|
},
|
||||||
appearance = {
|
appearance = {
|
||||||
nerd_font_variant = "mono"
|
nerd_font_variant = "mono",
|
||||||
},
|
},
|
||||||
completion = { documentation = { auto_show = true } },
|
completion = { documentation = { auto_show = true } },
|
||||||
sources = {
|
sources = {
|
||||||
default = { "lsp", "path", "snippets", "buffer" },
|
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" }
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -34,7 +34,10 @@ return { -- Non programming quality of life utilities go here
|
|||||||
path = fallback_path,
|
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
|
end
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ return {
|
|||||||
for _, map in ipairs(lsp_keys) do
|
for _, map in ipairs(lsp_keys) do
|
||||||
vim.keymap.set("n", map[1], map[2], {
|
vim.keymap.set("n", map[1], map[2], {
|
||||||
buffer = event.buf,
|
buffer = event.buf,
|
||||||
desc = "LSP: " .. map.desc
|
desc = "LSP: " .. map.desc,
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -133,5 +133,5 @@ return { -- UI components and other visual elements are declared here
|
|||||||
config = function()
|
config = function()
|
||||||
require("rainbow-delimiters.setup").setup()
|
require("rainbow-delimiters.setup").setup()
|
||||||
end,
|
end,
|
||||||
}
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user