summaryrefslogtreecommitdiff
path: root/lua
diff options
context:
space:
mode:
authorMike Hartington <mhartington@users.noreply.github.com>2020-12-03 00:37:07 -0500
committerGitHub <noreply@github.com>2020-12-03 00:37:07 -0500
commit424b98df154a333c3b85d48e7e435892c5854dfe (patch)
tree896875eadf963822fc825c089e0c15ad50a01038 /lua
parentf2b483edc54ff1892d52d90177e7fb89e9a10535 (diff)
fix: add back filetypedetect on edit (#283)
* add back filetypedetect on edit * chore(): apply feedback
Diffstat (limited to 'lua')
-rw-r--r--lua/telescope/actions/init.lua1
1 files changed, 1 insertions, 0 deletions
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