Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

format #56

Open
kdurant opened this issue Jul 19, 2022 · 1 comment
Open

format #56

kdurant opened this issue Jul 19, 2022 · 1 comment

Comments

@kdurant
Copy link

kdurant commented Jul 19, 2022

I install cmake-format and config 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.

@jasongshap
Copy link

Saw this too and when I ran formatting_sync directly I got the following:
vim.lsp.buf.formatting_sync: timeout

Try running with a longer timeout:
:lua vim.lsp.buf.formatting_sync(nil, 5000)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants