fix: run filetypedetect on edit (#116)
This commit is contained in:
@@ -103,6 +103,7 @@ local function goto_file_selection(prompt_bufnr, command)
|
|||||||
vim.cmd(string.format(":%s %s", command, filename))
|
vim.cmd(string.format(":%s %s", command, filename))
|
||||||
bufnr = vim.api.nvim_get_current_buf()
|
bufnr = vim.api.nvim_get_current_buf()
|
||||||
a.nvim_buf_set_option(bufnr, "buflisted", true)
|
a.nvim_buf_set_option(bufnr, "buflisted", true)
|
||||||
|
vim.api.nvim_command("doautocmd filetypedetect BufRead " .. vim.fn.fnameescape(filename))
|
||||||
end
|
end
|
||||||
|
|
||||||
if row and col then
|
if row and col then
|
||||||
|
|||||||
Reference in New Issue
Block a user