From b0f6895c316bfef17337944e08ddca8f6f4761ff Mon Sep 17 00:00:00 2001 From: Mike Hartington Date: Wed, 23 Sep 2020 16:35:57 -0400 Subject: [PATCH] fix: run filetypedetect on edit (#116) --- lua/telescope/actions.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/lua/telescope/actions.lua b/lua/telescope/actions.lua index f2c3ffc..9f411e4 100644 --- a/lua/telescope/actions.lua +++ b/lua/telescope/actions.lua @@ -103,6 +103,7 @@ local function goto_file_selection(prompt_bufnr, command) vim.cmd(string.format(":%s %s", command, filename)) bufnr = vim.api.nvim_get_current_buf() a.nvim_buf_set_option(bufnr, "buflisted", true) + vim.api.nvim_command("doautocmd filetypedetect BufRead " .. vim.fn.fnameescape(filename)) end if row and col then