@vonheikemen@hachyderm.io
@vonheikemen@hachyderm.io avatar

vonheikemen

@vonheikemen@hachyderm.io

I'm a software developer, mostly do web development stuff. I occasionally like to talk about linux, Neovim and javascript.

And now a quote:

Don’t let their school make a fool of you because the teachers may be fools too.

-- Jinjer. "Teacher, Teacher!"

This profile is from a federated server and may be incomplete. Browse more on the original instance.

vonheikemen, to neovim
@vonheikemen@hachyderm.io avatar

happy neovim release day to those who celebrate (those who didn't see a wall of plugin deprecation warnings after updating).

here's a nice blogpost that explains some of the new features (written by a neovim contributor)

https://gpanders.com/blog/whats-new-in-neovim-0.10/

#neovim

vonheikemen, to neovim
@vonheikemen@hachyderm.io avatar

i did it. did a thing. the thing is done:

a guide on neovim's lsp client. the unofficial click-baity title was "how to enable ide-like features without plugins."

https://vonheikemen.github.io/devlog/tools/neovim-lsp-client-guide/

#neovim

vonheikemen,
@vonheikemen@hachyderm.io avatar

@scy vim.lsp.start() was added in neovim v0.8. by default it will reuse the lsp server, as long as the "name" of the client and the root_dir are the same.

https://neovim.io/doc/user/lsp.html#vim.lsp.start()

in my example the name of the client is inferred from the cmd property. generally is a good idea to provide the name yourself.

vonheikemen, to vim
@vonheikemen@hachyderm.io avatar

i keep forgetting about the column command, so i'm writting this down.

if you are in vim and you want to format a markdown table, select all the text and use this command.

:'<,'>!column -t -s '|' -o '|'  

don't worry about typing '<,'>, vim will add that for you when you go from visual mode to command mode.

#vim #neovim

einenlum, to neovim
@einenlum@fosstodon.org avatar

I realize I'm lost about how to configure my #Lsp on #Neovim. It works. But I don't understand how everything works together.

I have neovim/nvim-lspconfig, williamboman/mason-lspconfig.nvim, VonHeikemen/lsp-zero.nvim

I would love a good article about the role of every plugin and how (for example) to switch from a server to another one for a specific language.

Any help appreciated ❤️

vonheikemen,
@vonheikemen@hachyderm.io avatar

@einenlum i wrote this blogpost before creating lsp-zero, but it basically explains the same config (althought a little bit more opinionated):

https://vonheikemen.github.io/devlog/tools/setup-nvim-lspconfig-plus-nvim-cmp/

in lsp-zero's documentation there is also a quick explanation to what's going on under the hood

LSP config:

https://github.com/VonHeikemen/lsp-zero.nvim/blob/v2.x/doc/md/lsp.md

autocompletion config:

https://github.com/VonHeikemen/lsp-zero.nvim/blob/v2.x/doc/md/autocomplete.md

and here is a snippet of everything put together:

https://github.com/VonHeikemen/lsp-zero.nvim/blob/v2.x/doc/md/guides/under-the-hood.md

  • All
  • Subscribed
  • Moderated
  • Favorites
  • megavids
  • thenastyranch
  • rosin
  • GTA5RPClips
  • osvaldo12
  • love
  • Youngstown
  • slotface
  • khanakhh
  • everett
  • kavyap
  • mdbf
  • DreamBathrooms
  • ngwrru68w68
  • provamag3
  • magazineikmin
  • InstantRegret
  • normalnudes
  • tacticalgear
  • cubers
  • ethstaker
  • modclub
  • cisconetworking
  • Durango
  • anitta
  • Leos
  • tester
  • JUstTest
  • All magazines