diff options
author | Akshay <[email protected]> | 2020-11-20 05:51:42 +0000 |
---|---|---|
committer | Akshay <[email protected]> | 2020-11-20 05:51:42 +0000 |
commit | 4c7b6751ee381993e448ab43766555bf178ae28c (patch) | |
tree | 0cc5a4759ae8d448f051179637f265a929cc391a /nvim/.config/nvim/ftplugin/kotlin.vim | |
parent | 381f7807521b71595614c6bbe5bdcce2c68c3f8c (diff) |
add hlint + qf integration
Diffstat (limited to 'nvim/.config/nvim/ftplugin/kotlin.vim')
-rw-r--r-- | nvim/.config/nvim/ftplugin/kotlin.vim | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/nvim/.config/nvim/ftplugin/kotlin.vim b/nvim/.config/nvim/ftplugin/kotlin.vim new file mode 100644 index 0000000..d001ac1 --- /dev/null +++ b/nvim/.config/nvim/ftplugin/kotlin.vim | |||
@@ -0,0 +1,19 @@ | |||
1 | setlocal tabstop=4 | ||
2 | setlocal softtabstop=4 | ||
3 | setlocal shiftwidth=4 | ||
4 | setlocal expandtab | ||
5 | setlocal autoindent | ||
6 | setlocal smarttab | ||
7 | setlocal formatoptions=croql | ||
8 | |||
9 | setlocal comments=:// | ||
10 | setlocal commentstring=//\ %s | ||
11 | |||
12 | setlocal makeprg=ktlint | ||
13 | |||
14 | augroup KtLint | ||
15 | autocmd! | ||
16 | autocmd BufWritePost *.kt silent make! <afile> | silent redraw | ||
17 | autocmd QuickFixCmdPost [^l]* cwindow | ||
18 | augroup END | ||
19 | |||