mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-04-15 08:09:11 +08:00
Merge pull request #150 from SpaceVim/improve_lang/java
Update java.vim
This commit is contained in:
commit
d03d2faf45
@ -2,7 +2,7 @@
|
|||||||
" @section Introduction, intro
|
" @section Introduction, intro
|
||||||
" @stylized Maktaba
|
" @stylized Maktaba
|
||||||
" @library
|
" @library
|
||||||
" @order intro version dicts functions exceptions layers layer-lang-php layer-lang-c
|
" @order intro version dicts functions exceptions layers colorscheme layer_lang_java layer_lang_php layer_lang_c
|
||||||
" SpaceVim is a Modular configuration, a bundle of custom settings
|
" SpaceVim is a Modular configuration, a bundle of custom settings
|
||||||
" and plugins, for Vim. It got inspired by spacemacs.
|
" and plugins, for Vim. It got inspired by spacemacs.
|
||||||
|
|
||||||
|
@ -1,3 +1,13 @@
|
|||||||
|
""
|
||||||
|
" @section Colorscheme, colorscheme
|
||||||
|
" gruvbox : this is SpaceVim default colorscheme. SpaceVim also support there
|
||||||
|
" colorschemes:
|
||||||
|
" >
|
||||||
|
" hybrid-material
|
||||||
|
" solarized
|
||||||
|
" <
|
||||||
|
|
||||||
|
|
||||||
function! SpaceVim#layers#colorscheme#plugins() abort
|
function! SpaceVim#layers#colorscheme#plugins() abort
|
||||||
return [
|
return [
|
||||||
\ ['morhetz/gruvbox', {'loadconf' : 1}],
|
\ ['morhetz/gruvbox', {'loadconf' : 1}],
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
""
|
""
|
||||||
" @section Layer-lang-c
|
" @section Layer_lang_c
|
||||||
" lang#c :
|
" lang#c :
|
||||||
"
|
"
|
||||||
" this layer provide c family language code completion.
|
" this layer provide c family language code completion.
|
||||||
|
@ -1,3 +1,40 @@
|
|||||||
|
""
|
||||||
|
" @section Layer_lang_java, layer_lang_java
|
||||||
|
" This layer is for java development.
|
||||||
|
" >
|
||||||
|
" import-mappings:
|
||||||
|
" mode key function
|
||||||
|
" normal <F4> import class under corsor.
|
||||||
|
" insert <F4> import class under corsor.
|
||||||
|
" normal <leader>jI import missing classes.
|
||||||
|
" normal <leader>jR remove unused imports.
|
||||||
|
" normal <leader>ji smart import class under corsor.
|
||||||
|
" normal <leader>jii same as <F4>
|
||||||
|
" insert <c-j>I import missing imports.
|
||||||
|
" insert <c-j>R remove unused imports.
|
||||||
|
" insert <c-j>i smart import class under corsor.
|
||||||
|
" insert <c-j>ii add import for class under corsor.
|
||||||
|
"
|
||||||
|
" generate-mappings:
|
||||||
|
" mode key function
|
||||||
|
" normal <leader>jA generate accessors.
|
||||||
|
" normal <leader>js generate setter accessor.
|
||||||
|
" normal <leader>jg generate getter accessor.
|
||||||
|
" normal <leader>ja generate setter and getter accessor.
|
||||||
|
" normal <leader>jts generate toString function.
|
||||||
|
" normal <leader>jeq generate equals and hashcode function.
|
||||||
|
" normal <leader>jc generate constructor.
|
||||||
|
" normal <leader>jcc generate default constructor.
|
||||||
|
" insert <c-j>s generate setter accessor.
|
||||||
|
" insert <c-j>g generate getter accessor.
|
||||||
|
" insert <c-j>a generate getter and setter accessor.
|
||||||
|
" visual <leader>js generate setter accessor.
|
||||||
|
" visual <leader>jg generate getter accessor.
|
||||||
|
" visual <leader>ja generate setter and getter acctssor.
|
||||||
|
" <
|
||||||
|
"
|
||||||
|
|
||||||
|
|
||||||
function! SpaceVim#layers#lang#java#plugins() abort
|
function! SpaceVim#layers#lang#java#plugins() abort
|
||||||
let plugins = [
|
let plugins = [
|
||||||
\ ['wsdjeg/vim-dict', { 'on_ft' : 'java'}],
|
\ ['wsdjeg/vim-dict', { 'on_ft' : 'java'}],
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
""
|
""
|
||||||
" @section Layer-lang-php
|
" @section Layer_lang_php
|
||||||
" lang#php :
|
" lang#php :
|
||||||
"
|
"
|
||||||
" this layer is for php development, and it provide auto codo completion,
|
" this layer is for php development, and it provide auto codo completion,
|
||||||
|
@ -7,8 +7,10 @@ CONTENTS *SpaceVim-contents*
|
|||||||
2. Configuration...........................................|SpaceVim-config|
|
2. Configuration...........................................|SpaceVim-config|
|
||||||
3. Functions............................................|SpaceVim-functions|
|
3. Functions............................................|SpaceVim-functions|
|
||||||
4. Layers..................................................|SpaceVim-layers|
|
4. Layers..................................................|SpaceVim-layers|
|
||||||
5. Layer-lang-php..................................|SpaceVim-layer-lang-php|
|
5. Colorscheme........................................|SpaceVim-colorscheme|
|
||||||
6. Layer-lang-c......................................|SpaceVim-layer-lang-c|
|
6. Layer_lang_java................................|SpaceVim-layer_lang_java|
|
||||||
|
7. Layer_lang_php..................................|SpaceVim-layer_lang_php|
|
||||||
|
8. Layer_lang_c......................................|SpaceVim-layer_lang_c|
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
INTRODUCTION *SpaceVim-intro*
|
INTRODUCTION *SpaceVim-intro*
|
||||||
@ -222,7 +224,54 @@ LAYERS *SpaceVim-layers*
|
|||||||
SpaceVim support such layers:
|
SpaceVim support such layers:
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
LAYER-LANG-PHP *SpaceVim-layer-lang-php*
|
COLORSCHEME *SpaceVim-colorscheme*
|
||||||
|
|
||||||
|
gruvbox : this is SpaceVim default colorscheme. SpaceVim also support there
|
||||||
|
colorschemes:
|
||||||
|
>
|
||||||
|
hybrid-material
|
||||||
|
solarized
|
||||||
|
<
|
||||||
|
|
||||||
|
==============================================================================
|
||||||
|
LAYER_LANG_JAVA *SpaceVim-layer_lang_java*
|
||||||
|
|
||||||
|
This layer is for java development.
|
||||||
|
>
|
||||||
|
import-mappings:
|
||||||
|
mode key function
|
||||||
|
normal <F4> import class under corsor.
|
||||||
|
insert <F4> import class under corsor.
|
||||||
|
normal <leader>jI import missing classes.
|
||||||
|
normal <leader>jR remove unused imports.
|
||||||
|
normal <leader>ji smart import class under corsor.
|
||||||
|
normal <leader>jii same as <F4>
|
||||||
|
insert <c-j>I import missing imports.
|
||||||
|
insert <c-j>R remove unused imports.
|
||||||
|
insert <c-j>i smart import class under corsor.
|
||||||
|
insert <c-j>ii add import for class under corsor.
|
||||||
|
|
||||||
|
generate-mappings:
|
||||||
|
mode key function
|
||||||
|
normal <leader>jA generate accessors.
|
||||||
|
normal <leader>js generate setter accessor.
|
||||||
|
normal <leader>jg generate getter accessor.
|
||||||
|
normal <leader>ja generate setter and getter accessor.
|
||||||
|
normal <leader>jts generate toString function.
|
||||||
|
normal <leader>jeq generate equals and hashcode function.
|
||||||
|
normal <leader>jc generate constructor.
|
||||||
|
normal <leader>jcc generate default constructor.
|
||||||
|
insert <c-j>s generate setter accessor.
|
||||||
|
insert <c-j>g generate getter accessor.
|
||||||
|
insert <c-j>a generate getter and setter accessor.
|
||||||
|
visual <leader>js generate setter accessor.
|
||||||
|
visual <leader>jg generate getter accessor.
|
||||||
|
visual <leader>ja generate setter and getter acctssor.
|
||||||
|
<
|
||||||
|
|
||||||
|
|
||||||
|
==============================================================================
|
||||||
|
LAYER_LANG_PHP *SpaceVim-layer_lang_php*
|
||||||
|
|
||||||
lang#php :
|
lang#php :
|
||||||
|
|
||||||
@ -241,7 +290,7 @@ syntax check, and jump to the definition location.
|
|||||||
|
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
LAYER-LANG-C *SpaceVim-layer-lang-c*
|
LAYER_LANG_C *SpaceVim-layer_lang_c*
|
||||||
|
|
||||||
lang#c :
|
lang#c :
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user