diff options
author | Squibid <me@zacharyscheiman.com> | 2025-05-18 13:03:31 -0500 |
---|---|---|
committer | Squibid <me@zacharyscheiman.com> | 2025-05-18 13:03:31 -0500 |
commit | 450750835a01f64377434d6be0c7869ca59b7574 (patch) | |
tree | e957a9612b3a3425200856be6656fff5cff9543a /lua/core/lsp/functions.lua | |
parent | 77130d61af1e88855e273d042714f90323e04edf (diff) | |
download | nvim-450750835a01f64377434d6be0c7869ca59b7574.tar.gz nvim-450750835a01f64377434d6be0c7869ca59b7574.tar.bz2 nvim-450750835a01f64377434d6be0c7869ca59b7574.zip |
need I say what type of commit this is?
*kitchen sink*
Diffstat (limited to 'lua/core/lsp/functions.lua')
-rw-r--r-- | lua/core/lsp/functions.lua | 8 |
1 files changed, 3 insertions, 5 deletions
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", "<S-Tab>", function() vim.lsp.buf.signature_help(signature_opts) end, opts) map("n", { "<leader>r", "<F2>" }, vim.lsp.buf.rename, opts) - map("n", { "gA", "<F4>" }, vim.lsp.buf.code_action, { - buffer = bufnr, - desc = "check code actions", - }) + map("n", { "gA", "<F4>" }, 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" } } } |