vim: fix variable scope (unnecessarily global)
This commit is contained in:
parent
9ef29441a0
commit
a4d43a85cb
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@ local on_attach = function(client, bufnr)
|
||||||
map('n', 'grr', vim.lsp.buf.rename, opts)
|
map('n', 'grr', vim.lsp.buf.rename, opts)
|
||||||
map('n', 'gt', vim.lsp.buf.type_definition, opts)
|
map('n', 'gt', vim.lsp.buf.type_definition, opts)
|
||||||
|
|
||||||
filetype_attach = filetypes[vim.bo.filetype]
|
local filetype_attach = filetypes[vim.bo.filetype]
|
||||||
if filetype_attach then filetype_attach(client, bufnr) end
|
if filetype_attach then filetype_attach(client, bufnr) end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue