formatting

This commit is contained in:
2025-06-07 17:59:28 -05:00
parent d5be1d0e6e
commit 2c7fda5196
+22 -20
View File
@@ -253,18 +253,18 @@
yamlls.enable = true; yamlls.enable = true;
}; };
keymaps = { keymaps = {
silent = true; silent = true;
lspBuf = { lspBuf = {
gd = { gd = {
action = "definition"; action = "definition";
desc = "Goto Definition"; desc = "Goto Definition";
}; };
gr = { gr = {
action = "references"; action = "references";
desc = "Goto References"; desc = "Goto References";
}; };
gD = { gD = {
action = "declaration"; action = "declaration";
desc = "Goto Declaration"; desc = "Goto Declaration";
}; };
@@ -272,7 +272,7 @@
action = "implementation"; action = "implementation";
desc = "Goto Implementation"; desc = "Goto Implementation";
}; };
gT = { gT = {
action = "type_definition"; action = "type_definition";
desc = "Type Definition"; desc = "Type Definition";
}; };
@@ -284,28 +284,30 @@
action = "workspace_symbol"; action = "workspace_symbol";
desc = "Workspace Symbol"; desc = "Workspace Symbol";
}; };
"<leader>cr" = { "<leader>cr" = {
action = "rename"; action = "rename";
desc = "Rename"; desc = "Rename";
}; };
}; };
diagnostic = {
"<leader>cd" = { diagnostic = {
action = "open_float"; "<leader>cd" = {
desc = "Line Diagnostics"; action = "open_float";
}; desc = "Line Diagnostics";
};
"]d" = { "]d" = {
action = "goto_next"; action = "goto_next";
desc = "Next Diagnostic"; desc = "Next Diagnostic";
}; };
"[d" = { "[d" = {
action = "goto_prev"; action = "goto_prev";
desc = "Previous Diagnostic"; desc = "Previous Diagnostic";
}; };
}; };
}; };
}; };
}; };
extraConfigLua = '' extraConfigLua = ''
local _border = "rounded" local _border = "rounded"
@@ -317,12 +319,12 @@
vim.lsp.handlers["textDocument/signatureHelp"] = vim.lsp.with( vim.lsp.handlers["textDocument/signatureHelp"] = vim.lsp.with(
vim.lsp.handlers.signature_help, { vim.lsp.handlers.signature_help, {
border = _border border = _border
} }
) )
vim.diagnostic.config{ vim.diagnostic.config{
float={border=_border} float={border=_border}
}; };
require('lspconfig.ui.windows').default_options = { require('lspconfig.ui.windows').default_options = {