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 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 = {
|
||||||
|
|
Loading…
Reference in New Issue