Skip to content

Commit

Permalink
delete vim-lsp
Browse files Browse the repository at this point in the history
  • Loading branch information
hehe413 committed Feb 5, 2023
1 parent d79adbb commit 9a71bbd
Show file tree
Hide file tree
Showing 113 changed files with 5 additions and 18,477 deletions.
30 changes: 5 additions & 25 deletions linux.vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,8 @@ set noautochdir " 不自动切换当前工作目录,可能会导致
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" 编码设置
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
if(has('win32') || has('win64'))
set guifont=DroidSansMono\ NF:h12
if (has('win32') || has('win64'))
set guifont=DroidSansMono\ Nerd\ Font\ Mono:h12
elseif(has('gui_macvim'))
set guifont=DroidSansMono\ Nerd\ Font\ Mono:h18
else
Expand Down Expand Up @@ -177,7 +177,6 @@ Plug 'vim-syntastic/syntastic' " syntastic语法检查
Plug 'HonkW93/automatic-verilog' " SystemVerilog Tools
Plug 'WeiChungWu/vim-SystemVerilog' " for sv syntax
Plug 'yuweijun/vim-im' " for chinese input
Plug 'prabirshrestha/vim-lsp' " language server

call plug#end()

Expand Down Expand Up @@ -453,29 +452,11 @@ inoremap <unique> <F12> <C-R>=g:Vimim_chinese()<CR>
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif

"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" register systemverilog lsp
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
if executable('svls')
au User lsp_setup call lsp#register_server({
\ 'name': 'svls',
\ 'cmd': {server_info->['svls']},
\ 'whitelist': ['verilog', 'systemverilog'],
\ })
endif

augroup lsp_install
au!
" call s:on_lsp_buffer_enabled only for languages that has the server registered.
autocmd User lsp_buffer_enabled call s:on_lsp_buffer_enabled()
augroup END

"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" log中关键字高亮
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
let b:file_suffix = expand("%:e")

if b:file_suffix == "log" || b:file_suffix == "LOG" || b:file_suffix == "rpt"
autocmd BufNewFile,BufRead *.log,*.LOG,*.rpt exec ":call HightLightKeyWord()"
func HightLightKeyWord()
syn keyword logLevelCritical FATAL FAILURE FAIL FAILED
syn keyword logLevelError ERROR ERR
syn keyword logLevelWarning WARNING WARN
Expand All @@ -487,6 +468,5 @@ if b:file_suffix == "log" || b:file_suffix == "LOG" || b:file_suffix == "rpt"
hi def link logLevelWarning Debug
hi def link logLevelInfo String
hi def link logLevelPass Function
endif

endfunc

10 changes: 0 additions & 10 deletions plugged/vim-lsp/.vintrc.yaml

This file was deleted.

21 changes: 0 additions & 21 deletions plugged/vim-lsp/LICENSE

This file was deleted.

47 changes: 0 additions & 47 deletions plugged/vim-lsp/LICENSE-THIRD-PARTY

This file was deleted.

240 changes: 0 additions & 240 deletions plugged/vim-lsp/README.md

This file was deleted.

Loading

0 comments on commit 9a71bbd

Please sign in to comment.