Add more java and rest vim config

pull/2/head
Ensar Sarajčić 2021-10-04 13:46:14 +02:00
parent 47936f7267
commit 797cce9ef2
3 changed files with 13 additions and 0 deletions

View File

@ -1 +1,6 @@
require('lsp.jdtls_setup').setup()
vim.opt.shiftwidth = 4
vim.opt.tabstop = 4
vim.opt.softtabstop = 4
vim.opt.expandtab = true

View File

@ -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)

View File

@ -0,0 +1,5 @@
-------------------------------------------------------------------------------
-- - Vim REST Console setup and extra commands -
-------------------------------------------------------------------------------
vim.cmd[[command! -nargs=0 RestConsole :tabnew <bar> :set ft=rest]]