refactor: Move should refresh logic to utils

This commit is contained in:
simrat39
2021-08-22 17:29:29 -07:00
parent fae3393873
commit 6f376ef4ce
2 changed files with 11 additions and 3 deletions

View File

@@ -56,8 +56,7 @@ local function __refresh ()
end
local current_buf = vim.api.nvim_get_current_buf()
if (not lsp_utils.is_buf_markdown(current_buf)) and
(not lsp_utils.is_buf_attached_to_lsp(current_buf)) then
if lsp_utils.should_not_refresh(current_buf) then
return
end