fix(_refresh): Only refresh if current buffer is attached to a lsp

client
This commit is contained in:
simrat39
2021-05-03 15:30:46 -07:00
parent 887db9aaaa
commit 6cffe24f33

View File

@@ -62,6 +62,9 @@ function M._refresh()
function(_, _, result, client_id)
if result == nil or type(result) ~= 'table' then return end
if config.is_client_blacklisted(client_id) then return end
if not utils.is_buf_attached_to_lsp(vim.api.nvim_get_current_buf()) then
return
end
M.state.code_win = vim.api.nvim_get_current_win()
M.state.outline_items = parser.parse(result)