diff options
author | Jack Sangdahl <[email protected]> | 2023-08-18 13:13:41 -0600 |
---|---|---|
committer | Jack Sangdahl <[email protected]> | 2023-08-18 13:13:41 -0600 |
commit | e089ce6bed0b5989ed198976fe5ab25e0de49ae9 (patch) | |
tree | cfa1274b0de15f790f25cffe335bad4435cd6f43 /.config/nvchad | |
parent | 21c3772a160f04ce1e53f6e65a50254b9a298b89 (diff) | |
download | dots-e089ce6bed0b5989ed198976fe5ab25e0de49ae9.tar.gz dots-e089ce6bed0b5989ed198976fe5ab25e0de49ae9.zip |
update
Diffstat (limited to '.config/nvchad')
-rw-r--r-- | .config/nvchad/configs/null-ls.lua | 41 |
1 files changed, 19 insertions, 22 deletions
diff --git a/.config/nvchad/configs/null-ls.lua b/.config/nvchad/configs/null-ls.lua index 5a84df14..1b4b81a4 100644 --- a/.config/nvchad/configs/null-ls.lua +++ b/.config/nvchad/configs/null-ls.lua @@ -1,40 +1,37 @@ local present, null_ls = pcall(require, "null-ls") if not present then - return + return end local b = null_ls.builtins local sources = { - -- Lua - b.formatting.stylua, + -- lua + b.formatting.stylua, - -- cpp - b.formatting.clang_format, + -- cpp + b.formatting.clang_format, - -- rust - b.formatting.rustfmt, + -- rust + b.formatting.rustfmt, - -- python - b.formatting.black, + -- python + b.formatting.black, - -- json - b.diagnostics.jsonlint, - - -- latex - b.formatting.latexindent, + -- latex + b.formatting.latexindent, } -null_ls.setup { - debug = true, - sources = sources, -} +null_ls.setup({ + debug = true, + sources = sources, +}) local notify = vim.notify vim.notify = function(msg, ...) - if msg:match("warning: multiple different client offset_encodings") then - return - end - notify(msg, ...) + if msg:match("warning: multiple different client offset_encodings") then + return + end + notify(msg, ...) end |