diff --git a/config/nvim/lua/user/plugins/lsp.lua b/config/nvim/lua/user/plugins/lsp.lua index 7ca80a0..52d29f0 100644 --- a/config/nvim/lua/user/plugins/lsp.lua +++ b/config/nvim/lua/user/plugins/lsp.lua @@ -19,7 +19,7 @@ local on_attach = function(client, bufnr) map('n', 'grr', vim.lsp.buf.rename, 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 end