Add more java and rest vim config
parent
47936f7267
commit
797cce9ef2
|
@ -1 +1,6 @@
|
|||
require('lsp.jdtls_setup').setup()
|
||||
|
||||
vim.opt.shiftwidth = 4
|
||||
vim.opt.tabstop = 4
|
||||
vim.opt.softtabstop = 4
|
||||
vim.opt.expandtab = true
|
||||
|
|
|
@ -24,6 +24,9 @@ let g:ale_fixers.go = ['gofmt']
|
|||
let g:ale_fixers.cpp = ['clang-format']
|
||||
let g:ale_fixers.java = ['google_java_format']
|
||||
|
||||
" Additional Java options
|
||||
let g:ale_java_google_java_format_options = ['--aosp', '--formatJavadoc']
|
||||
|
||||
" Warnings navigation
|
||||
nmap <silent> [W <Plug>(ale_first)
|
||||
nmap <silent> [w <Plug>(ale_previous)
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
-------------------------------------------------------------------------------
|
||||
-- - Vim REST Console setup and extra commands -
|
||||
-------------------------------------------------------------------------------
|
||||
|
||||
vim.cmd[[command! -nargs=0 RestConsole :tabnew <bar> :set ft=rest]]
|
Loading…
Reference in New Issue