summaryrefslogtreecommitdiff
path: root/lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua')
-rw-r--r--lua/telescope/actions.lua1
1 files changed, 1 insertions, 0 deletions
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