terraform-ls VS vim-lsp

Compare terraform-ls vs vim-lsp and see what are their differences.

vim-lsp

async language server protocol plugin for vim and neovim (by prabirshrestha)
Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
terraform-ls vim-lsp
13 81
951 3,005
1.5% -
9.4 6.8
3 days ago 18 days ago
Go Vim Script
Mozilla Public License 2.0 MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
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.

terraform-ls

Posts with mentions or reviews of terraform-ls. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-08-25.
  • OpenTF Announces Fork of Terraform
    28 projects | news.ycombinator.com | 25 Aug 2023
    Marcin here, one of the OpenTF folks

    This repo [0] seems to still be licensed under MPL, so there is no need for an immediate action, but if there is a willingness in the community to take it over and improve, I see no reason why we wouldn't do it.

    [0] https://github.com/hashicorp/terraform-ls

  • State of terraform
    3 projects | /r/Terraform | 22 Jun 2023
  • Why is this so dumb?
    2 projects | /r/Terraform | 3 May 2023
    For example my other issue with simple click through URLs to resource documentation pages, this would be a simple solution if the resource documentation URL formatting was done to a standard with the resource names.
  • Can't get .tf highlighting to work. Terraform
    3 projects | /r/neovim | 15 Jan 2023
    I have followed this guide: https://github.com/hashicorp/terraform-ls/blob/main/docs/USAGE.md
  • Help with implementing missing LSP functionality in Terraform
    3 projects | /r/neovim | 5 Dec 2022
    As /u/fridgedigga, neither LSP implements renaming. The LSP spec can be found here. I don't know how all of this is wired up. At a minimum, you'll need to add a mapping in service.go and handler. The bulk of work is performed in the handlers.
  • Workflow for DevOps? (Ansible, Terraform, Kubernets, RHET)
    9 projects | /r/neovim | 30 May 2022
    Look at terraform-ls vs terraform-lsp. Both can be used with coc.nvim.
  • Terraform Assistance (Nvim, Vim, LSP?)
    2 projects | /r/vim | 1 Mar 2022
    For the LSP, I have never heard of Terraform before but it looks like they have a section on using it with vim/neovim. Not sure if this is already part of what you have tried, but I can't really help more since I have never used it.
  • VSCode plugin very slow at terraform fmt on save
    2 projects | /r/Terraform | 14 Jun 2021
    This worked, thank you! I found all the cli options here for anyone that needs them.
  • Terraform 1.0 Release
    33 projects | news.ycombinator.com | 8 Jun 2021
    https://github.com/hashicorp/terraform-ls

    These are both fairly limited but you can see every editor (except intellij) uses this under the hood.

    I've used them at companies with 300+ terraform repos and have never had much of an issue navigating/understanding TF through Vim.

  • Using terraform-ls with Kate as LSP Client
    3 projects | /r/kde | 27 Apr 2021
    So, what happens when you run the server from command line and then open your file in Kate? Any difference? Also, is there any command argument for logging and/or debugging the terraform-ls? It might help to find the issue, if any. I found this from the docs.

vim-lsp

Posts with mentions or reviews of vim-lsp. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-10-27.
  • Using SonarLint language server in Vim?
    4 projects | /r/vim | 27 Oct 2023
    Has anybody managed or got an idea how to make SonarLint Language Server work with e.g. vim-lsp?
  • Vim Golang syntax is ugly
    4 projects | /r/vim | 28 May 2023
    You need to configure a language server. For C++ it's a bit tricky, so good luck with Go. There are other plugins that provide semantic highlighting using LSP, for example https://github.com/prabirshrestha/vim-lsp (I didn't try it, but it seems good).
  • Vim-writegood: nothing, but a simple Vim9 wrapper around write-good.
    5 projects | /r/vim | 21 May 2023
    ALE can use LSP as well. And if you are using vim-lsp, you can use the same instance of server for both with vim-lsp-ale bridge plugin.
  • small vimrc and lsp?
    4 projects | /r/vim | 15 May 2023
    I feel the same way. Not a one-liner but the smallest config LSP plugin I've found is vim-lsp. It works in both Vim and Neovim.
  • Should I move to NeoVim?
    4 projects | /r/neovim | 25 Apr 2023
    The only major feature that Neovim still has is a built in LSP client. But I find the built in Neovim LSP client is unusably buggy, you're much better off using any of the other LSP plugins. What I use is vim-lsp, but I've tried all of the major lsp client, they are all significantly better than the built in Neovim LSP.
  • Starting with linux, my experience
    3 projects | /r/linux4noobs | 17 Apr 2023
  • Does vim have a built in/plugin version of vscode's command click?
    2 projects | /r/vim | 14 Apr 2023
  • install lsp in vim
    3 projects | /r/vim | 27 Mar 2023
    As for install/configuration, all you need is the latest Vim, the plugins I mentioned, and that bit in your vimrc. You can do a bit better than that if you copy the entire config with mappings from the vim-lsp GitHub page.
  • How to improve deoplete and vim-lsp (pylsp /jedi-language-server)
    3 projects | /r/vim | 22 Mar 2023
    I have a problem with Deoplete and Vim-LSP completion (Python's Pylsp and Jedi-Language-Server). The suggestion is much less, and it also misses a lot of opportunities to suggest compared to Deoplete-Jedi, which literally defeats the former by a large margin. Is there a setting to make this duo works like deoplete with deoplete-jedi?
  • The Ruff python linter is insanely good
    10 projects | /r/Python | 16 Mar 2023
    - add the [prabirshrestha/vim-lsp](https://github.com/prabirshrestha/vim-lsp) plugin and config to your `.vimrc` (note: `pylsp` is *not* necessary).

What are some alternatives?

When comparing terraform-ls and vim-lsp you can also consider the following projects:

terraform-lsp - Language Server Protocol for Terraform

coc.nvim - Nodejs extension host for vim & neovim, load extensions like VSCode and host language servers.

terragrunt - Terragrunt is a thin wrapper for Terraform that provides extra tools for working with multiple Terraform modules.

ale - Check syntax in Vim/Neovim asynchronously and fix files, with Language Server Protocol (LSP) support

tfenv - Terraform version manager

YouCompleteMe - A code-completion engine for Vim

terraform - Terraform enables you to safely and predictably create, change, and improve infrastructure. It is a source-available tool that codifies APIs into declarative configuration files that can be shared amongst team members, treated as code, edited, reviewed, and versioned.

python-lsp-server - Fork of the python-language-server project, maintained by the Spyder IDE team and the community

terraform-switcher - A command line tool to switch between different versions of terraform (install with homebrew and more)

vim-lsc - A vim plugin for communicating with a language server

pulumi-terraform-bridge - A library allowing providers built with the Terraform Plugin SDK to be bridged into Pulumi.

jedi-language-server - A Python language server exclusively for Jedi. If Jedi supports it well, this language server should too.