fix: run filetypedetect on edit (#116)

This commit is contained in:
Mike Hartington
2020-09-23 16:35:57 -04:00
committed by GitHub
parent 6e59074a50
commit b0f6895c31

View File

@@ -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