feat(nvim): add clang conf to yaml pattern and add format
All checks were successful
Discord / discord commits (push) Has been skipped

This commit is contained in:
matt1432 2025-02-13 13:03:48 -05:00
parent 7c21758c73
commit 0008a861d8

View file

@ -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"