Skip to content

cmake

https://github.com/regen100/cmake-language-server

CMake LSP Implementation

Setup

require'lspconfig'.cmake.setup{}

Default values

cmd = { "cmake-language-server" }
filetypes = { "cmake" }
init_options = {
  buildDirectory = "build"
}
root_dir = function(fname)
      return util.root_pattern('.git', 'compile_commands.json', 'build')(fname) or util.path.dirname(fname)
    end,
Back to top