feat(nvim): add clang conf to yaml pattern and add format
All checks were successful
Discord / discord commits (push) Has been skipped
All checks were successful
Discord / discord commits (push) Has been skipped
This commit is contained in:
parent
7c21758c73
commit
0008a861d8
1 changed files with 5 additions and 1 deletions
|
@ -15,7 +15,7 @@ in {
|
||||||
# lua
|
# lua
|
||||||
''
|
''
|
||||||
vim.api.nvim_create_autocmd('FileType', {
|
vim.api.nvim_create_autocmd('FileType', {
|
||||||
pattern = { 'json', 'yaml' },
|
pattern = { 'json', 'yaml', '.clang-.*' },
|
||||||
|
|
||||||
callback = function()
|
callback = function()
|
||||||
vim.cmd[[setlocal ts=4 sw=4 sts=0 expandtab]];
|
vim.cmd[[setlocal ts=4 sw=4 sts=0 expandtab]];
|
||||||
|
@ -44,6 +44,10 @@ in {
|
||||||
|
|
||||||
settings = {
|
settings = {
|
||||||
yaml = {
|
yaml = {
|
||||||
|
format = {
|
||||||
|
enable = true,
|
||||||
|
singleQuote = true,
|
||||||
|
},
|
||||||
schemas = {
|
schemas = {
|
||||||
[
|
[
|
||||||
"https://json.schemastore.org/github-workflow.json"
|
"https://json.schemastore.org/github-workflow.json"
|
||||||
|
|
Loading…
Add table
Reference in a new issue