More refactoring, leveraging after/ftplugin
This commit is contained in:
14
after/ftplugin/cs.vim
Normal file
14
after/ftplugin/cs.vim
Normal file
@@ -0,0 +1,14 @@
|
||||
let g:OmniSharp_selector_ui = 'ctrlp'
|
||||
let g:OmniSharp_highlight_groups = {
|
||||
\ 'csUserIdentifier': [
|
||||
\ 'constant name', 'enum member name', 'field name', 'identifier',
|
||||
\ 'local name', 'parameter name', 'property name', 'static symbol'],
|
||||
\ 'csUserInterface': ['interface name'],
|
||||
\ 'csUserMethod': ['extension method name', 'method name'],
|
||||
\ 'csUserType': ['class name', 'enum name', 'namespace name', 'struct name']
|
||||
\}
|
||||
let g:OmniSharp_highlight_types = 2
|
||||
|
||||
nnoremap <buffer> <leader>D :OmniSharpGotoDefinition<CR>
|
||||
nnoremap <buffer> <leader>cc :OmniSharpGlobalCodeCheck<CR>
|
||||
nnoremap <buffer> <F12> :OmniSharpGetCodeActions<CR>
|
||||
2
after/ftplugin/javascript.vim
Normal file
2
after/ftplugin/javascript.vim
Normal file
@@ -0,0 +1,2 @@
|
||||
setlocal suffixesadd='.js'
|
||||
setlocal ai sw=2 sts=2 et
|
||||
2
after/ftplugin/typescript.vim
Normal file
2
after/ftplugin/typescript.vim
Normal file
@@ -0,0 +1,2 @@
|
||||
setlocal suffixesadd='.ts'
|
||||
setlocal suffixesadd='/index.ts'
|
||||
Reference in New Issue
Block a user