From 450750835a01f64377434d6be0c7869ca59b7574 Mon Sep 17 00:00:00 2001 From: Squibid Date: Sun, 18 May 2025 13:03:31 -0500 Subject: need I say what type of commit this is? *kitchen sink* --- lua/core/lsp/functions.lua | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'lua/core/lsp') diff --git a/lua/core/lsp/functions.lua b/lua/core/lsp/functions.lua index 1c9f18a..0ec2c93 100644 --- a/lua/core/lsp/functions.lua +++ b/lua/core/lsp/functions.lua @@ -53,10 +53,7 @@ local function attach(bufnr) map("n", "gr", function() vim.lsp.buf.references(nil, list_opts) end, opts) map("n", "", function() vim.lsp.buf.signature_help(signature_opts) end, opts) map("n", { "r", "" }, vim.lsp.buf.rename, opts) - map("n", { "gA", "" }, vim.lsp.buf.code_action, { - buffer = bufnr, - desc = "check code actions", - }) + map("n", { "gA", "" }, vim.lsp.buf.code_action, opts) -- Diagnostics map("n", "[d", function() @@ -67,6 +64,7 @@ local function attach(bufnr) end, opts) end +--- setup vim lsp options function M.setup() vim.diagnostic.config { virtual_text = false, @@ -81,7 +79,7 @@ function M.setup() [vim.diagnostic.severity.ERROR] = "x", [vim.diagnostic.severity.WARN] = "!", [vim.diagnostic.severity.INFO] = "i", - [vim.diagnostic.severity.HINT] = "h", + [vim.diagnostic.severity.HINT] = "h" } } } -- cgit v1.2.1