From 424b98df154a333c3b85d48e7e435892c5854dfe Mon Sep 17 00:00:00 2001 From: Mike Hartington Date: Thu, 3 Dec 2020 00:37:07 -0500 Subject: [PATCH] fix: add back filetypedetect on edit (#283) * add back filetypedetect on edit * chore(): apply feedback --- lua/telescope/actions/init.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/lua/telescope/actions/init.lua b/lua/telescope/actions/init.lua index d60b869..e479d1b 100644 --- a/lua/telescope/actions/init.lua +++ b/lua/telescope/actions/init.lua @@ -122,6 +122,7 @@ function actions._goto_file_selection(prompt_bufnr, command) end end end + vim.api.nvim_command("doautocmd filetypedetect BufRead " .. vim.fn.fnameescape(filename)) end end