mirror of
https://github.com/LunarVim/LunarVim.git
synced 2025-07-21 11:14:42 +02:00
[LANG] c/cpp: formatter - run clang-format from CWD of file. (#967)
This commit is contained in:
parent
b309c49981
commit
ebcb38d85b
1 changed files with 1 additions and 0 deletions
|
@ -30,6 +30,7 @@ M.format = function()
|
||||||
exe = O.lang.clang.formatter.exe,
|
exe = O.lang.clang.formatter.exe,
|
||||||
args = O.lang.clang.formatter.args,
|
args = O.lang.clang.formatter.args,
|
||||||
stdin = not (O.lang.clang.formatter.stdin ~= nil),
|
stdin = not (O.lang.clang.formatter.stdin ~= nil),
|
||||||
|
cwd = vim.fn.expand "%:h:p",
|
||||||
}
|
}
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue