804 B
804 B
Neovim Formatting Settings
Turn on clang-format
in C, CUDA, C++, C#, Java, JavaScript, and JSON.
vim.cmd([[
let g:clang_format#code_style = 'file'
autocmd FileType c ClangFormatAutoEnable
autocmd FileType cuda ClangFormatAutoEnable
autocmd FileType cpp ClangFormatAutoEnable
autocmd FileType cs ClangFormatAutoEnable
autocmd FileType java ClangFormatAutoEnable
autocmd FileType javascript ClangFormatAutoEnable
autocmd FileType json ClangFormatAutoEnable
let g:vimtex_view_method = 'skim'
]])
Auto-format Rust on save.
vim.g.rustfmt_autosave = 1
Start making a table by placing a |
.
vim.g.table_mode_corner = '|'