nvim: inline single use variable

nixos
Moritz Böhme 2023-02-18 17:55:20 +01:00
parent c9dac34ee0
commit 30e7dc07e5
Signed by: moritz
GPG Key ID: 970C6E89EB0547A9
1 changed files with 1 additions and 3 deletions

View File

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