nvim: inline single use variable
parent
c9dac34ee0
commit
30e7dc07e5
|
@ -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 = {
|
||||
|
|
Loading…
Reference in New Issue