sublimelsp / LSP-cmake

Convenience package for a basic cmake-language-server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

LSP-cmake

This is a helper package that automatically installs and updates a CMake Language Server for you.

Installation

  • Install LSP
  • Install CMake package to enable support for CMake syntax.
  • Install LSP-cmake
  • Make sure that cmake is in the PATH and Sublime Text can find it.
  • Restart Sublime.

Applicable Selectors

This language server operates on views with the source.cmake base scope.

Installation Location

The server is installed in the $CACHE/Package Storage/LSP-cmake directory, where $CACHE is the base data path of Sublime Text. For instance, $CACHE is ~/.cache/sublime-text on a Linux system. If you want to force a re-installation of the server, you can delete the entire $CACHE/Package Storage/LSP-cmake directory or just reinstall the package. The installation is done through a virtual environment, using pip. Therefore, you must have at least the python executable installed and it must be present in your $PATH.

Like any helper package, installation starts when you open a view that is suitable for this language server. In this case, that means that when you open a view with the source.cmake base scope, installation commences.

Configuration

Configure the Python Language Server by accessing Preferences > Package Settings > LSP > Servers > LSP-cmake.

This language servers provides a few basic services like hover info and formatting.

About

Convenience package for a basic cmake-language-server

License:MIT License


Languages

Language:Python 100.0%