Skip to content

fix(readme): changed editor install instructions for nvim 0.11#414

Merged
jfly merged 1 commit into
NixOS:masterfrom
lwctr:fix-deprecated-install-instruction
Jun 4, 2026
Merged

fix(readme): changed editor install instructions for nvim 0.11#414
jfly merged 1 commit into
NixOS:masterfrom
lwctr:fix-deprecated-install-instruction

Conversation

@lwctr

@lwctr lwctr commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

neovim 0.11 changed the way of configuring lsp's to now use vim.lsp.config(), with this require("lspconfig") is now deprecated. (I do not know if the changes affects non-ls).

… changes in nvim 0.11

neovim 0.11 changed the way of configuring lsp's to now use
vim.lsp.config(), with this require("lspconfig") is now deprecated. (I
do not know if the changes affect non-ls).
@github-actions

github-actions Bot commented Jun 4, 2026

Copy link
Copy Markdown

Nixpkgs diff

@jfly jfly left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Untested, but seems fine to me.

Comment thread README.md
nixd = {
formatting = {
vim.lsp.config['nixd'] = {
settings ={

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Spacing nit here

Comment thread README.md
['nil'] = {
formatting = {
vim.lsp.config['nil'] = {
settings ={

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Spacing nit here

@jfly

jfly commented Jun 4, 2026

Copy link
Copy Markdown
Collaborator

Thanks, @indexhd!

@jfly jfly merged commit e55f7b0 into NixOS:master Jun 4, 2026
4 checks passed
@lwctr

lwctr commented Jun 4, 2026

Copy link
Copy Markdown
Contributor Author

first ever pull request, happy to contribute to open source, even if its not code 😃

@MattSturgeon MattSturgeon left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, I started this review earlier but wasn't able to finish it until now.

Happy to open a follow up PR, but let's discuss here first.

(Thanks for updating our docs!)

Comment thread README.md
settings = {
['nil'] = {
formatting = {
vim.lsp.config['nil'] = {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe the intended API is to call config as a function, not assign to its table properties directly.

Suggested change
vim.lsp.config['nil'] = {
vim.lsp.config('nil', {

This allows defining the config for the same LSP multiple times; if you assign to the table property, you overwrite previous config.

We also want vim.lsp.enable('nil') as well.

(same for nixd, ofcourse)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh yes, that seems smarter than what i did, i'l have to change that in my config 🙃

@jfly

jfly commented Jun 5, 2026

Copy link
Copy Markdown
Collaborator

Thanks @MattSturgeon! Should have waiting for our resident neovim expert before merging. If this isn't fixed in a week, I'll do it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants