From 6cffe24f33bbe963ff3604f9df9294ed0981b2b0 Mon Sep 17 00:00:00 2001 From: simrat39 Date: Mon, 3 May 2021 15:30:46 -0700 Subject: [PATCH] fix(_refresh): Only refresh if current buffer is attached to a lsp client --- lua/symbols-outline.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lua/symbols-outline.lua b/lua/symbols-outline.lua index d1b16c1..e49a4ef 100644 --- a/lua/symbols-outline.lua +++ b/lua/symbols-outline.lua @@ -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)