Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

show column number on relativenumber options #74

Closed
hieulw opened this issue Jan 15, 2024 · 2 comments · Fixed by #98
Closed

show column number on relativenumber options #74

hieulw opened this issue Jan 15, 2024 · 2 comments · Fixed by #98
Labels
enhancement New feature or request

Comments

@hieulw
Copy link

hieulw commented Jan 15, 2024

image

Hello my options have vim.opt.relativenumber = true. How can I disable line number in dbee-drawer, dbee-call-log, dbee-result. They don't have custom buftype or filetype to customize by autocmd, they're just filename

@willruggiano
Copy link

willruggiano commented Feb 13, 2024

Yeah, this is something that was lost in the refactor. The pre-refactor version had window_layout hooks that could be used for this exact purpose. Post-refactor, you have to implement an entire layout which isn't ideal if you're just trying to set some window options.

You can create autocmds for the filenames, e.g.

vim.api.nvim_create_autocmd("WinNew", {
  pattern = "dbee-call-log",
  callback = function()
    -- do whatever you want in here, e.g.
    vim.wo.relativenumber = true
  end
})

however this doesn't always work. For example, when first opening the dbee ui these autocmds don't fire (or they do but get overwritten by dbee, not sure which, or why). They do fire upon re-opening the dbee ui - at least in my setup. Specifically for dbee-result, this one never seems to hit for me.

Anyways, I too would like to be able to set a few options for each of these windows. Maybe we can convince @kndndrj to add the old window_layout hooks back, or the old window_commands, or just something that's lets you specify some custom window opts for each of these tiles 😜

@kndndrj
Copy link
Owner

kndndrj commented Apr 9, 2024

Window/buffer options sure would make sense.

@kndndrj kndndrj added the enhancement New feature or request label Apr 9, 2024
@kndndrj kndndrj mentioned this issue Apr 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants