Skip to content

Commit

Permalink
fix: on_attach() return false to disable attaching
Browse files Browse the repository at this point in the history
  • Loading branch information
antoinemadec authored and lewis6991 committed Nov 9, 2024
1 parent a2a3349 commit 158377d
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions lua/treesitter-context.lua
Original file line number Diff line number Diff line change
Expand Up @@ -134,10 +134,6 @@ local function autocmd(event, callback, opts)
end

function M.enable()
local cbuf = api.nvim_get_current_buf()

attached[cbuf] = true

local update_events = {
'WinScrolled',
'BufEnter',
Expand Down

0 comments on commit 158377d

Please sign in to comment.