vim: fix variable scope (unnecessarily global)

This commit is contained in:
Fernando Schauenburg 2023-07-09 14:14:54 +02:00
parent 9ef29441a0
commit a4d43a85cb

View file

@ -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