CMake lsp based on Tower and treesitter

Crates.io

It is a CMake lsp based on tower-lsp and treesitter

Install

bash cargo install neocmakelsp

Setup

lua local configs = require("lspconfig.configs") local nvim_lsp = require("lspconfig") if not configs.neocmake then configs.neocmake = { default_config = { cmd = { "neocmakelsp" }, filetypes = { "cmake" }, root_dir = function(fname) return nvim_lsp.util.find_git_ancestor(fname) end, single_file_support = true,-- suggested on_attach = on_attach } } nvim_lsp.neocmake.setup({}) end

Features

TODO

Show

Complete and symbol support

Show

OnHover

Show

GoToDefinition

Show