mhartington/formatter.nvim

How to append the "cwd" command to the configuration of clangformat?

Closed this issue · 0 comments

Hi, I'm new to neovim and the formatter plugin. I met some problems. Please take a look!

Which configuration?

Type (custom or builtin): builtin
Filetype: c/cpp
Formatter: clang-format

Question 1

When I add the configuration, will it cover the default one or just append it?

覆盖原有配置还是在原有配置上添加这部分配置

Question 2

I want to add the cwd command to the config, so I need to know whether there are some predefined variables for path, just like vsc's ${workspaceFolder} or ${fileWorkspaceFolder} .etc.

If there are no predefined variables, should I use the absolute path or relative path for my project?

路径怎么填?