Skip to content

Commit

Permalink
feat: completeopt+=fuzzy
Browse files Browse the repository at this point in the history
  • Loading branch information
jiangyinzuo committed Jun 6, 2024
1 parent 9ae8887 commit 4db0d2b
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ if has('autocmd') " vim-tiny does not have autocmd
else
set wildmode=list:full
endif
if has('patch-9.1.463') || has('nvim')
set completeopt+=fuzzy
endif
set wildignore=.git/*,build/*,.cache/*
set updatetime=700 " GitGutter更新和自动保存.swp的延迟时间
" https://www.skywind.me/blog/archives/2021
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Vim/Neovim requirements:
- vim 9.1+ (full features)
- vim 8.2.4919+ (most of features)
- vim 7.4.629+ (minimal)
- neovim 0.10.0+
- neovim 0.11.0+

See [install/README.md](./install/README.md) for more details.

Expand Down
25 changes: 25 additions & 0 deletions root/.vim/doc/c-cpp-cuda.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,31 @@ CompileFlags:
Remove: [-fopenmp]
<
clangd还没实现outgoing calls in call hierarchy https://github.com/llvm/llvm-project/pull/77556

clangd omp.h not found ~

locate /omp.h 找到omp.h文件位置,然后在`.clangd`文件中添加

CompileFlags:
Add:
- -isystem/usr/lib/gcc/x86_64-linux-gnu/13/include/

clangd / |ccls| 找不到c++系统头文件解决方法 ~

安装当前系统最新的libstdc++

>
apt search libstdc++
apt install libstdc++-12-dev
<

https://stackoverflow.com/questions/74785927/clangd-doesnt-recognize-standard-headers

查看当前系统安装的libstdc++版本
>
ls /usr/include/c++
<

--------------------------------------------------------------------------------------

*clang-format* `:%!clang-format` or `:'<,'>!clang-format`.
Expand Down
3 changes: 3 additions & 0 deletions root/.vim/vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,9 @@ if has('autocmd') " vim-tiny does not have autocmd
else
set wildmode=list:full
endif
if has('patch-9.1.463') || has('nvim')
set completeopt+=fuzzy
endif
set wildignore=.git/*,build/*,.cache/*
set updatetime=700 " GitGutter更新和自动保存.swp的延迟时间
" https://www.skywind.me/blog/archives/2021
Expand Down

0 comments on commit 4db0d2b

Please sign in to comment.