diff options
Diffstat (limited to 'nvim')
| -rw-r--r-- | nvim/.config/nvim/lua/plugins/conform.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/nvim/.config/nvim/lua/plugins/conform.lua b/nvim/.config/nvim/lua/plugins/conform.lua index 1d4be80..c83ea3b 100644 --- a/nvim/.config/nvim/lua/plugins/conform.lua +++ b/nvim/.config/nvim/lua/plugins/conform.lua @@ -55,7 +55,7 @@ return { end -- Disable "format_on_save lsp_fallback" for certain languages. - local disable_filetypes = { sql = true, c = true, cpp = true } + local disable_filetypes = {} if disable_filetypes[vim.bo[bufnr].filetype] then return nil end @@ -78,6 +78,8 @@ return { htmldjango = { 'prettierd', 'prettier', stop_after_first = true }, html = { 'prettierd', 'prettier', stop_after_first = true }, sh = { 'shfmt' }, + cpp = { 'clang-format' }, + c = { 'clang-format' }, }, formatters = { isort = { |