Skip to content

add prehook option for agile setup#40

Open
Dehta-Hun wants to merge 2 commits into
Aasim-A:masterfrom
Dehta-Hun:master
Open

add prehook option for agile setup#40
Dehta-Hun wants to merge 2 commits into
Aasim-A:masterfrom
Dehta-Hun:master

Conversation

@Dehta-Hun
Copy link
Copy Markdown

My use case was that I didn't want plugin to work on specific buffer which I could determine only by name of it

like this:

      prehook = function(bufnr)
        local bufname = vim.api.nvim_buf_get_name(bufnr)
        if bufname:match("/%[dap.*") then
          return false -- disable scrollEOF for this buffer
        end
        return true
      end,

Andrey Mironov added 2 commits November 27, 2025 15:46
@zeevenn
Copy link
Copy Markdown

zeevenn commented Jan 4, 2026

Try disabled_filetypes?

@Dehta-Hun
Copy link
Copy Markdown
Author

Try disabled_filetypes?

Well yeah, but I wasn't been able to determine file type of buffer (if there is any)
Buffer is created by dap-neotest, having unique name each time by having a prefix number at the end

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants