Open kdurant opened 2 years ago
I install cmake-format and config cmake-language-server
cmake-format
cmake-language-server
"languageserver": { "cmake": { "command": "cmake-language-server", "filetypes": ["cmake"], "rootPatterns": [ "build/" ], "initializationOptions": { "buildDirectory": "build" } } }
It can't format CMakeLists.txt when I saved it.
Saw this too and when I ran formatting_sync directly I got the following: vim.lsp.buf.formatting_sync: timeout
vim.lsp.buf.formatting_sync: timeout
Try running with a longer timeout: :lua vim.lsp.buf.formatting_sync(nil, 5000)
:lua vim.lsp.buf.formatting_sync(nil, 5000)
I install
cmake-format
and configcmake-language-server
It can't format CMakeLists.txt when I saved it.