fix: disable update rules on floating window.

fix #107 fix #121
This commit is contained in:
windwp 2021-09-04 20:00:08 +07:00
parent 8197c69a55
commit b9bb171325

View File

@ -138,6 +138,10 @@ local function is_disable()
if M.state.disabled then
return true
end
if vim.bo.filetype == '' and api.nvim_win_get_config(0).relative ~= '' then
-- disable for any floating window without filetpe
return true
end
if vim.bo.modifiable == false then
return true
end