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

Disable opening and closing loclist automatically in neovim #1399

Closed
that-ambuj opened this issue Aug 12, 2023 · 4 comments
Closed

Disable opening and closing loclist automatically in neovim #1399

that-ambuj opened this issue Aug 12, 2023 · 4 comments
Labels
enhancement New feature or request

Comments

@that-ambuj
Copy link

that-ambuj commented Aug 12, 2023

Whenever I commit a file change(:w) in neovim. zls automatically opens a Location List at the bottom of by current buffer. I have configured my location list with lsp diagnostics but I like to keep the loclist without any distractions. But zls is very forceful about it that it opens it up when there's an error and closes it when there are 0 errors. This makes the saves take longer and gives a laggy experience. Please disable loclist by default in zls.

For Context, I am using the lastest zls (zls-git from AUR) and zig (zig-bin from AUR) on my machine and I installed zls in neovim using Mason.

@that-ambuj that-ambuj added the enhancement New feature or request label Aug 12, 2023
@that-ambuj
Copy link
Author

Moved to ziglang/zig.vim#100

@LucioMacarine
Copy link

Moved to ziglang/zig.vim#100

I don't believe that's a zig.vim issue since I'm not using it but have the same problem

@that-ambuj
Copy link
Author

@LucioMacarine Are you using vscode? Apparently, vscode has a similar issue when I tried to use zig in vscode.

As far as zig.vim goes, I know which line of code is supposed to populate and open the loclist and I have a fork that has the required changes.

@Techatrix Techatrix closed this as not planned Won't fix, can't repro, duplicate, stale Aug 22, 2023
@mark-blacket
Copy link

I don't believe that's a zig.vim issue since I'm not using it but have the same problem

It is a zig.vim issue, this line (which I stole from zig.vim repo) helped me with it:
let g:zig_fmt_autosave = 0
I assume some distros automatically install zig.vim with zig

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

No branches or pull requests

4 participants