nvim: inline single use variable

This commit is contained in:
Moritz Böhme 2023-02-18 17:55:20 +01:00
parent c9dac34ee0
commit 30e7dc07e5
Signed by: moritz
GPG key ID: 970C6E89EB0547A9

View file

@ -235,8 +235,6 @@ local capabilities = require("cmp_nvim_lsp").default_capabilities()
local lspconfig = require("lspconfig") local lspconfig = require("lspconfig")
local on_attach_def = function(_, bufnr) local on_attach_def = function(_, bufnr)
local options = { noremap = true, silent = true, buffer = bufnr }
wk.register({ wk.register({
K = { vim.lsp.buf.hover, "show info" }, K = { vim.lsp.buf.hover, "show info" },
["<leader>"] = { ["<leader>"] = {
@ -279,7 +277,7 @@ local on_attach_def = function(_, bufnr)
i = { vim.lsp.buf.implementation, "implementation" }, i = { vim.lsp.buf.implementation, "implementation" },
t = { vim.lsp.buf.type_definition, "type defininition" }, t = { vim.lsp.buf.type_definition, "type defininition" },
}, },
}, options) }, { buffer = bufnr, silent = true })
end end
local lspconfig_default_options = { local lspconfig_default_options = {