fix: silent handling when buffer has no oil adapter (#573)
This commit is contained in:
parent
975a77cce3
commit
d7c61c7084
8 changed files with 23 additions and 31 deletions
|
|
@ -156,7 +156,7 @@ M.parse = function(bufnr)
|
|||
---@type oil.ParseError[]
|
||||
local errors = {}
|
||||
local bufname = vim.api.nvim_buf_get_name(bufnr)
|
||||
local adapter = util.get_adapter(bufnr)
|
||||
local adapter = util.get_adapter(bufnr, true)
|
||||
if not adapter then
|
||||
table.insert(errors, {
|
||||
lnum = 0,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue