Skip to content

Allow setting relativenumber in config #196

Answered by deathbeam
tlacuilose asked this question in Q&A
Discussion options

You must be logged in to vote

Replied this also on the PR but they are just buffers so you can work with them like you normally work with buffers for eveything else, imo confguration is not necessary:

vim.api.nvim_create_autocmd("BufEnter", {
    pattern = 'copilot-*',
    callback = function()
        vim.opt_local.relativenumber = true
        vim.opt_local.number = true
    end
})

EDIT: But also maybe it would be good idea to actually have the buffer names documented in README as atm we dont
EDIT2: Also we probably dont need to overwrite relativenumber at all for the window, so it could be straight up removed so it takes users default config.

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by jellydn
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@tlacuilose
Comment options

@deathbeam
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
enhancement New feature or request
2 participants
Converted from issue

This discussion was converted from issue #187 on March 18, 2024 23:08.