diff options
| author | Mike Hartington <mhartington@users.noreply.github.com> | 2020-09-23 16:35:57 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-09-23 16:35:57 -0400 |
| commit | b0f6895c316bfef17337944e08ddca8f6f4761ff (patch) | |
| tree | 03d98ef9be533255ba56954cd78d13ea2bba35b4 /lua | |
| parent | 6e59074a5056790497c693fea03c2e8a3b5fb070 (diff) | |
fix: run filetypedetect on edit (#116)
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/telescope/actions.lua | 1 |
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 |
