From 3c24bf7ba26a2e22d38b27f5bf8f7ae79dce1e45 Mon Sep 17 00:00:00 2001 From: SinTan1729 Date: Wed, 3 Apr 2024 15:25:09 -0500 Subject: [PATCH] chg: Remove unneeded variable --- laptop/plugin/lsp_config.lua | 3 +-- server/plugin/lsp_config.lua | 3 +-- vps/plugin/lsp_config.lua | 3 +-- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/laptop/plugin/lsp_config.lua b/laptop/plugin/lsp_config.lua index 299514e..54309a7 100644 --- a/laptop/plugin/lsp_config.lua +++ b/laptop/plugin/lsp_config.lua @@ -21,8 +21,7 @@ lspconfig.lua_ls.setup({ -- Set ;k to hover and ;a to show code actions vim.api.nvim_create_autocmd("LspAttach", { - callback = function(args) - local bufnr = args.buf + callback = function() map('n', 'k', vim.lsp.buf.hover, { remap = false }) map('n', 'a', vim.lsp.buf.code_action, { remap = false }) end, diff --git a/server/plugin/lsp_config.lua b/server/plugin/lsp_config.lua index 08eb6dd..2174e92 100644 --- a/server/plugin/lsp_config.lua +++ b/server/plugin/lsp_config.lua @@ -14,8 +14,7 @@ local lspconfig = require('lspconfig') -- Set ;k to hover and ;a to show code actions vim.api.nvim_create_autocmd("LspAttach", { - callback = function(args) - local bufnr = args.buf + callback = function() map('n', 'k', vim.lsp.buf.hover, { remap = false }) map('n', 'a', vim.lsp.buf.code_action, { remap = false }) end, diff --git a/vps/plugin/lsp_config.lua b/vps/plugin/lsp_config.lua index 08eb6dd..2174e92 100644 --- a/vps/plugin/lsp_config.lua +++ b/vps/plugin/lsp_config.lua @@ -14,8 +14,7 @@ local lspconfig = require('lspconfig') -- Set ;k to hover and ;a to show code actions vim.api.nvim_create_autocmd("LspAttach", { - callback = function(args) - local bufnr = args.buf + callback = function() map('n', 'k', vim.lsp.buf.hover, { remap = false }) map('n', 'a', vim.lsp.buf.code_action, { remap = false }) end,