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

Plugin conflict #633

Open
christos-chatzifountas-biotz-io opened this issue Dec 21, 2024 · 3 comments
Open

Plugin conflict #633

christos-chatzifountas-biotz-io opened this issue Dec 21, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@christos-chatzifountas-biotz-io

I am not sure if i should post it here or on project.nmin issues, there is a conflict with the Clojure Conjure plugin.
Namely conjure creates conjure-log*.cljc buffers and the combination with project.nvim causes the root directory
to create theese files and keep them.

@Olical Olical added the bug Something isn't working label Dec 22, 2024
@Olical
Copy link
Owner

Olical commented Dec 22, 2024

Hmm I don't think I can do much more from my side, I think this might be a project.nvim thing? I set nofile, hidden and no swap file here when creating the log:

(fn upsert-hidden [buf-name new-buf-fn]
(let [(ok? buf) (pcall nvim.fn.bufnr buf-name)
loaded? (and ok? (nvim.buf_is_loaded buf))]
;; This state happens when the user unloads the buffer somehow.
;; It still exists but is in a bad state, we delete and start over.
(when (and (not= -1 buf) (not loaded?))
(nvim.buf_delete buf {}))
(if (or (= -1 buf) (not loaded?))
(let [buf (if loaded?
buf
(let [buf (nvim.fn.bufadd buf-name)]
(nvim.fn.bufload buf)
buf))]
(nvim.buf_set_option buf :buftype :nofile)
(nvim.buf_set_option buf :bufhidden :hide)
(nvim.buf_set_option buf :swapfile false)
(unlist buf)
(when new-buf-fn
(new-buf-fn buf))
buf)
buf)))

If there's another hint I can set in order to get it to play nicely I'm more than happy to.

@christos-chatzifountas-biotz-io
Copy link
Author

I am not sure, i already opened an issue on project-nvim, with similar wording
ahmedkhalf/project.nvim#176
A work around would be to spawn any files inside /tmp or another specific folder

@Olical
Copy link
Owner

Olical commented Dec 24, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants