blob: 5b362d0ec13df612365afe1a06d02fc4cba70790 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#+title: Neovim Formatting Settings
Turn on =clang-format= in C, CUDA, C++, C#, Java, JavaScript, and JSON.
#+begin_src lua :tangle yes
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'
]])
#+end_src
Auto-format Rust on save.
#+begin_src lua :tangle yes
vim.g.rustfmt_autosave = 1
#+end_src
Start making a table by placing a =|=.
#+begin_src lua :tangle yes
vim.g.table_mode_corner = '|'
#+end_src
|