trying to add clangd and cmake lsps p 2

This commit is contained in:
dlond 2025-05-22 18:13:57 +12:00
parent abed9bdabc
commit be59c986be
1 changed files with 5 additions and 4 deletions

View File

@ -36,8 +36,9 @@ return {
}, },
}, },
clangd = { clangd = {
cmd = { 'clangd', '--compile-commands-dir=build' }, cmd = { 'clangd' },
root_dir = require('lspconfig.util').root_pattern('CMakeLists.tst', '.git'), filetypes = { 'c', 'cpp', 'objc', 'objcpp', 'cuda' },
root_dir = require('lspconfig.util').root_pattern('CMakeLists.txt', '.git'),
}, },
pyright = { pyright = {
settings = { settings = {
@ -56,9 +57,9 @@ return {
ruff = {}, ruff = {},
texlab = {}, texlab = {},
cmake = { cmake = {
cmd = { 'cmake-language-server', '--stdio' }, cmd = { 'cmake-language-server' },
filetypes = { 'cmake' }, filetypes = { 'cmake' },
root_dir = require('lspconfig.util').root_pattern('CMakeLists.tst', '.git'), root_dir = require('lspconfig.util').root_pattern('CMakeLists.txt', '.git'),
}, },
} }