-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: remove nvim-dap-lldb, update lsp keymaps
- Loading branch information
1 parent
703b521
commit 384d3b6
Showing
10 changed files
with
81 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# LLVM Project | ||
for vimscript in llvm.vim mir.vim tablegen.vim ; do | ||
( wget --output-document root/.vim/ftplugin/$vimscript https://github.com/llvm/llvm-project/raw/main/llvm/utils/vim/ftplugin/$vimscript ) | ||
done | ||
for vimscript in llvm.vim mir.vim tablegen.vim llvm-lit.vim ; do | ||
( wget --output-document root/.vim/ftdetect/$vimscript https://github.com/llvm/llvm-project/raw/main/llvm/utils/vim/ftdetect/$vimscript ) | ||
done | ||
for vimscript in llvm.vim machine-ir.vim mir.vim tablegen.vim ; do | ||
( wget --output-document root/.vim/syntax/$vimscript https://github.com/llvm/llvm-project/raw/main/llvm/utils/vim/syntax/$vimscript ) | ||
done | ||
for vimscript in llvm.vim ; do | ||
( wget --output-document root/.vim/indent/$vimscript https://github.com/llvm/llvm-project/raw/main/llvm/utils/vim/indent/$vimscript ) | ||
done | ||
|
||
wait |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
vim:ft=help | ||
=================================================================== | ||
*yum* | ||
|
||
yum clean all 清除所有缓存 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,21 @@ | ||
" See: https://github.com/dansomething/coc-java-debug | ||
if g:vimrc_lsp == 'coc.nvim' | ||
" See: https://github.com/dansomething/coc-java-debug | ||
function! JavaStartDebugCallback(err, port) | ||
execute "cexpr! 'Java debug started on port: " . a:port . "'" | ||
call vimspector#LaunchWithSettings({ "configuration": "Java Attach", "AdapterPort": a:port }) | ||
endfunction | ||
|
||
function! JavaStartDebugCallback(err, port) | ||
execute "cexpr! 'Java debug started on port: " . a:port . "'" | ||
call vimspector#LaunchWithSettings({ "configuration": "Java Attach", "AdapterPort": a:port }) | ||
endfunction | ||
function JavaRunDebugMode() | ||
let l:class_name = expand('%:t:r') | ||
execute 'AsyncRun -pos=tab -mode=term -name=' . l:class_name . ' -cwd=' . getcwd() . ' javac -g ' . l:class_name .'.java && java -Xdebug -Xrunjdwp:server=y,transport=dt_socket,address=5005,suspend=y ' . l:class_name | ||
tabp | ||
endfunction | ||
|
||
function JavaRunDebugMode() | ||
let l:class_name = expand('%:t:r') | ||
execute 'AsyncRun -pos=tab -mode=term -name=' . l:class_name . ' -cwd=' . getcwd() . ' javac -g ' . l:class_name .'.java && java -Xdebug -Xrunjdwp:server=y,transport=dt_socket,address=5005,suspend=y ' . l:class_name | ||
tabp | ||
endfunction | ||
function JavaStartDebug() | ||
call CocActionAsync('runCommand', 'vscode.java.startDebugSession', function('JavaStartDebugCallback')) | ||
endfunction | ||
|
||
function JavaStartDebug() | ||
call CocActionAsync('runCommand', 'vscode.java.startDebugSession', function('JavaStartDebugCallback')) | ||
endfunction | ||
|
||
" 调试Java单文件时,先运行JavaRunDebugMode,再运行JavaStartDebug | ||
command -nargs=0 JavaRunDebugMode call JavaRunDebugMode() | ||
command -nargs=0 JavaStartDebug call JavaStartDebug() | ||
" 调试Java单文件时,先运行JavaRunDebugMode,再运行JavaStartDebug | ||
command -nargs=0 JavaRunDebugMode call JavaRunDebugMode() | ||
command -nargs=0 JavaStartDebug call JavaStartDebug() | ||
endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters