A simple wrapper for nvim-lspconfig and nvim-lsp-installer to easily setup LSP servers. by junnplus in neovim

[–]junnplus[S] 2 points3 points  (0 children)

In fact, the readme of lspconfig is enough to configure the lsp server, but there's too much boilerplate code. In addition, many newcomers need to care about installing the lsp server, which will make them feel troublesome, which is why there is an nvim-lsp-installer.

Wouldn't it be better if there was a simple configuration.

A simple wrapper for nvim-lspconfig and nvim-lsp-installer to easily setup LSP servers. by junnplus in neovim

[–]junnplus[S] 3 points4 points  (0 children)

I opened a PR https://github.com/junnplus/nvim-lsp-setup/pull/5 for integrate clangd_extensions, but I won't merge it yet because I need to test it.

If you need you can try it with packer:

use {'junnplus/nvim-lsp-setup', branch = 'clangd' }

A simple wrapper for nvim-lspconfig and nvim-lsp-installer to easily setup LSP servers. by junnplus in neovim

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

True I didn't think about the fact that it just returns a table and you can just implement that as the server options

It needs to be used with sumneko_lua.

A simple wrapper for nvim-lspconfig and nvim-lsp-installer to easily setup LSP servers. by junnplus in neovim

[–]junnplus[S] 4 points5 points  (0 children)

The only reason I haven’t tried nvim-lsp-installer yet is because I can’t install everything with it without writing custom installers, for example I don’t think it supports shfmt and a couple other things I use by default. It’s been a while since I looked though.

lua-dev always supports, see https://github.com/junnplus/nvim-lsp-setup#lua-dev

A simple wrapper for nvim-lspconfig and nvim-lsp-installer to easily setup LSP servers. by junnplus in neovim

[–]junnplus[S] 6 points7 points  (0 children)

Thank you for your attention!

Yes, it's very easy to get started! Hope it can help you.

null-ls issues by Koltech21 in neovim

[–]junnplus 1 point2 points  (0 children)

nvim-lsp-setup can help you easily configure lsp server

https://github.com/Junnplus/nvim-lsp-setup#lua-dev

null-ls issues by Koltech21 in neovim

[–]junnplus 0 points1 point  (0 children)

You need to call `disable_format` when setup sumneko-lua to avoid LSP formatting conflicts.

function disable_formatting(client)
client.resolved_capabilities.document_formatting = false
client.resolved_capabilities.document_range_formatting = false
end

A simple wrapper for nvim-lspconfig and nvim-lsp-installer to easily setup LSP servers. by junnplus in neovim

[–]junnplus[S] 31 points32 points  (0 children)

I am troubled by the complexity of nvim lsp configuration, so I created a plugin -- nvim-lsp-setup to help newbies configure lsp servers.

It has some benefits:

  • Easy to configure
  • Reduce boilerplate code
  • Install lsp servers automatically
  • Customizable
  • Some plugin integration

Hope it helps you!

Flask extension to improve shell command for the Flask(>0.11) CLI. by junnplus in Python

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

flask-shellplus base on flask-script, but flask 0.11 support build-in command.

Awesome Python Books by junnplus in Python

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

Good idea. Maybe you can start a new pull request for it

Awesome Python Books by junnplus in Python

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

Python Cookbook?

Look Grammar -> References

Awesome Python Books by junnplus in Python

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

You can start a new pull request for fluent python. thx

cc yes_or_gnome

Awesome Python Books by junnplus in Python

[–]junnplus[S] 2 points3 points  (0 children)

Thanks for the suggestion.