mirror of
https://github.com/ilyakooo0/nvim-autopairs.git
synced 2024-09-11 07:15:44 +03:00
parent
8197c69a55
commit
b9bb171325
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user