nvim-lint
nvim-lspinstall
DISCONTINUED
Our great sponsors
nvim-lint | nvim-lspinstall | |
---|---|---|
28 | 31 | |
1,507 | 537 | |
- | - | |
9.0 | 8.7 | |
7 days ago | over 2 years ago | |
Lua | Lua | |
GNU General Public License v3.0 only | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
nvim-lint
-
Using nvim-lint as a null-ls alternative for linters
Personally, i think nvim-lint is the best alternative currently, specially so because it has no dependencies on external binaries. This guide assumes you already have your LSP set up with nvim-lspconfig (or an alternative like lsp-zero). You should also have an way to install the linters you are gonna need, i highly recommend Mason with mason-lspconfig.
-
null-ls will be archived
People looking for alternative can check these projects: - nvim-lint - formatter.nvim
-
Does a language server replace ALE, syntastic, and the language plugin?
For linting, I would recommend nvim-lint. Again the same step as before, a little bit of setup code to register your linter and you're good to go!
-
ALE now supports Neovim's diagnostics API
This will be the third linting solution to make use of the [Neovim Diagnostic] module after null-ls and nvim-lint. All can co-exist, all have the pros and cons.
-
Linting with ALE with executables in virtual envs
I use nvim-lint (https://github.com/mfussenegger/nvim-lint), but I still don't know exactly how to achieve your goals with it. My hunch is that it should be somewhat straightforward, since Lua code could be used to provide the executable command (i.e. if in poetry project then cmd =poetry run ...else if ... then ... end)
- ALE alternative in Lua
-
Guide: Structuring Lua plugins
It's not obvious from the website, but this is the blog of GitHub user @mfussenegger, who is a Neovim core member, one of the primary maintainers of Neovim's LSP client implementation, and the other of several excellent plugins.
-
Code Linting
https://github.com/mfussenegger/nvim-lint works with the diagnostics API that was created after LSP was added, to allow non-LSP to use diagnostics API. Meaning you can see LSP and linting in the same interfaces if you use this API.
-
How to do syntax checking on languages that don't have an LSP server in neovim?
You could use null-ls as an interface between Neovim LSP client and this kind of tools. If this tools are linters, you could also use nvim-lint
-
rust-analyzer autocmd error AND custom nvim-lint error with cargo check
I have both https://github.com/simrat39/rust-tools.nvim and https://github.com/mfussenegger/nvim-lint configured and I started noticing something that was working before had suddenly become broken, and it's not clear what changes I've made to my config (https://github.com/Integralist/dotfiles/tree/main/.config/nvim) that would have caused this error.
nvim-lspinstall
-
LSP question: manage an already installed server (instead of using lspinstall)
A word of caution, I believe lspinstall has been deprecated in favor of nvim-lspinstall which itself has also been deprecated in favor of mason-lspconfig
-
The SMOOTHEST yaml editing experience possible yaml-language-server neovim
kabouzeid/nvim-lspinstall will aide in installing lsp's if you want. I have chosen not to because I want to have my full setup scripted so when I setup any new machine I just run my ansible-playbook. This library is nice to just set things up quick and play with them.
- Cant get angular language server work
- Nvim-lspinstall has been archived
-
Do you use a completion plugin or use your own solution?
nvim-lspinstall
-
cmd not defined for "sumneko_lua". You must manually set cmd in the setup{} call according to CONFIG.md
I'm trying to edit a lua file, and got this error which I realize is because I didn't have the Lua language server installed. So using the LspInstall plugin, I did :LspInstall lua which was successful.
-
Enable Lsp on specific file types
I wanted to know how to enable lua-based Lsp (more specifically lsp ) for eg I open an .x file and be recognized as objective-c
Once you have it installed, you can configure it following the configuration of this file: https://github.com/kabouzeid/nvim-lspinstall/wiki. The part that ia bellow the comment "-- lsp-install" works and it was what I used initially when I didn't really know much about configuring neovim.
-
How to not have diagnostic error in a json file with comments?
I am using lspinstall to install language server. It uses this json-language-server. As the docs says jsonc is supported and it allows comments in jsonc filetypes but the lsp is not showing diagnostic if I make any other syntax error. On line 34 i have removed a comma and still lsp showing no diagnostic error in jsonc file.
-
[LSP]Tailwindcss not working
You could try to use the instructions that nvim-lspinstall uses to install the tailwindcss language server: https://github.com/kabouzeid/nvim-lspinstall/blob/main/lua/lspinstall/servers/tailwindcss.lua (lines 4 - 12)
What are some alternatives?
null-ls.nvim - Use Neovim as a language server to inject LSP diagnostics, code actions, and more via Lua.
ale - Check syntax in Vim/Neovim asynchronously and fix files, with Language Server Protocol (LSP) support
nvim-lsp-installer - Further development has moved to https://github.com/williamboman/mason.nvim!
typescript-language-server - TypeScript & JavaScript Language Server
nvim-lspconfig - Quickstart configs for Nvim LSP
ESLint - Find and fix problems in your JavaScript code.
diagnostic-nvim - A wrapper for neovim built in LSP diagnosis config
tailwindcss-intellisense - Intelligent Tailwind CSS tooling for Visual Studio Code
nvim-compe - Auto completion Lua plugin for nvim
vim-plug - :hibiscus: Minimalist Vim Plugin Manager
LunarVim - 🌙 LunarVim is an IDE layer for Neovim. Completely free and community driven.
Packer - Packer is a tool for creating identical machine images for multiple platforms from a single source configuration.