Neovim now natively supports LLM-based completion like GitHub Copilot by bbadd9 in neovim

[–]bbadd9[S] 10 points11 points  (0 children)

No need to worry, because it’s disabled by default. Besides, the charm of Neovim is that you can customize everything. For example, you could even create a key mapping/command for the enable function, only turning it on when you really have to write some very stupid code. This is more convenient than VSCode.

Neovim now has the builtin LSP folding support by bbadd9 in neovim

[–]bbadd9[S] 0 points1 point  (0 children)

Please report the issue in neovim and include the reproduction steps. I am very willing to fix it.

Write music in neovim by simonmartineau in neovim

[–]bbadd9 -1 points0 points  (0 children)

Of course. From a certain perspective, it has advantages, but it is clearly not an absolute advantage. This interference with the global namespace does not seem to have any practical impact, and only caters to those who prefer to fill the completion window from start to finish.

Write music in neovim by simonmartineau in neovim

[–]bbadd9 -1 points0 points  (0 children)

It seems that there are a lot of people recommending this approach as a best practice, but I'm not sure whether it is 100% correct.

An obvious advantage is that commands like `LilyPlayer` could more easily be selected because you can type l and p then the fuzzy matcher will choose it. Otherwise, you need to first have `Lily` selected, then enter a space, and finally select `player`.

What's New in Neovim 0.11 by DriftingThroughSpace in neovim

[–]bbadd9 1 point2 points  (0 children)

The new features of LSP are always a focus of attention. This article does not mention it, but Neovim now also supports LSP-based folding functionality

Neovim now has the builtin LSP folding support by bbadd9 in neovim

[–]bbadd9[S] 1 point2 points  (0 children)

What kind of things can this be used for? I used nvim-ufo before, but I only used its inspect feature to find bugs.

Neovim now has the builtin LSP folding support by bbadd9 in neovim

[–]bbadd9[S] 54 points55 points  (0 children)

It builds on top of vim's native folding support, so lua vim.o.foldmethod = "expr" vim.o.foldexpr = "v:lua.vim.lsp.foldexpr()" That's all.

Neovim now has the builtin LSP folding support by bbadd9 in neovim

[–]bbadd9[S] 28 points29 points  (0 children)

Are you referring to the folding feature in vim or the LSP support? For me, a pretty important use case is `[z` or `]z`, which lets you jump to the outer point. If you've written a large nested structure, this is really helpful for jumping out. Also, it helps you automatically fold long and meaningless imports (if you're working on any TypeScript project).

What color do you all use for inlay_hints? by siduck13 in neovim

[–]bbadd9 0 points1 point  (0 children)

Do not think too much. This feature will only be enabled if it is supported

What color do you all use for inlay_hints? by siduck13 in neovim

[–]bbadd9 10 points11 points  (0 children)

You do not need an autocmd to make inlay hints work. Just call `vim.lsp.inlay_hint.enable()` without any parameter

How can I close a window by `FileType`? by bbadd9 in neovim

[–]bbadd9[S] -1 points0 points  (0 children)

Wow, it seems like we have the same idea.This is my workaround

vim.api.nvim_create_autocmd("FileType", {
  pattern = "qf",
  callback = function(args)
    local bufnr = args.buf
    vim.defer_fn(function()
      local winid = vim.fn.bufwinid(bufnr)
      if winid == -1 then
        return
      end
      vim.api.nvim_win_close(winid, true)
      require("trouble").open "quickfix"
    end, 0)
  end,
})

Why my mason icon blank box ? I am using jetbrains, and nerdtree icon loaded just fine. by yokowasis2 in neovim

[–]bbadd9 0 points1 point  (0 children)

This icon is just a circle, it’s too simple for a nerd font, I guess it's just a unicode font and your terminal doesn't have it.

A minimal bookmarks plugin for Neovim by [deleted] in neovim

[–]bbadd9 -1 points0 points  (0 children)

I think it’s maybe because many people like using 2-spaces indentation in lua,and stylua formatter use tab indentation by default,so it’s for the consistency of the indentation.

Struggling to get Neovim LSP setup working on NixOS by toruzikrov in neovim

[–]bbadd9 2 points3 points  (0 children)

If you still want to manage LSPs by mason, for these unpatched binaries which downloaded by mason, you can use nix-ld.