Giter Club home page Giter Club logo

my-linux-config's Introduction

My Linux Configuration

License: GNU General Public License v3.0

📚 Document

⚙ Install

see scripts/install.sh, just a bunch of symbol links execpt neovim configuration is a little of complex:

🤝 Contributing

Contributions, issues and feature requests are welcome!
Feel free to check issues page.

📝 License

GNU General Public License v3.0 licensed.


Created with ❤️ by Martins3

<script src="https://giscus.app/client.js" data-repo="Martins3/My-Linux-Config" data-repo-id="MDEwOlJlcG9zaXRvcnkyMTUwMDkyMDU=" data-category="General" data-category-id="MDE4OkRpc2N1c3Npb25DYXRlZ29yeTMyODc0NjA5" data-mapping="pathname" data-reactions-enabled="1" data-emit-metadata="0" data-input-position="bottom" data-theme="light" data-lang="en" crossorigin="anonymous" async> </script>

本站所有文章转发 CSDN 将按侵权追究法律责任,其它情况随意。

my-linux-config's People

Contributors

ifantsai avatar korov avatar lansoa avatar martins3 avatar rivalak avatar shipley1105 avatar zhuweipu avatar zintown avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

my-linux-config's Issues

在窗口中新建文件问题

你好,我想在spacevim内新建文件,我用的是 space+b+N新建一个buffer,然后用vim命令file+文件名,但编辑的时候没有高亮那些,就是不认为是cpp文件,要退出重新进插件才有作用,我想问下要怎么在spcaevim窗口内新建文件?

how to jump back after call coc-definition?

大佬,你好。

操作环境: ubuntu18.04
~/.SpaceVim.d$ nvim -v
NVIM v0.5.0
Build type: RelWithDebInfo
LuaJIT 2.1.0-beta3
Compilation: /usr/bin/gcc-11 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -DNVIM_TS_HAS_SET_MATCH_LIMIT -O2 -g -Og -g -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wshadow -Wconversion -Wmissing-prototypes -Wimplicit-fallthrough -Wvla -fstack-protector-strong -fno-common -fdiagnostics-color=always -DINCLUDE_GENERATED_DECLARATIONS -D_GNU_SOURCE -DNVIM_MSGPACK_HAS_FLOAT32 -DNVIM_UNIBI_HAS_VAR_FROM -DMIN_LOG_LEVEL=3 -I/home/runner/work/neovim/neovim/build/config -I/home/runner/work/neovim/neovim/src -I/home/runner/work/neovim/neovim/.deps/usr/include -I/usr/include -I/home/runner/work/neovim/neovim/build/src/nvim/auto -I/home/runner/work/neovim/neovim/build/include
Compiled by runner@fv-az139-878

Features: +acl +iconv +tui
See ":help feature-compile"

system vimrc file: "$VIM/sysinit.vim"
fall-back for $VIM: "/share/nvim"

Run :checkhealth for more info

直接使用你的配置已经可以浏览代码了,只是有一个问题:

在使用,gd跳到一个函数定义之后,使用ctro+o可以跳转回原来的位置。但如果使用jkhl移动了光标,就不能使用ctrl+o到跳回原地址了。这导致在浏览内核代码时,非常不方便。

请问应该如何操作才可以快速跳回原来的位置,就像以前用ctags的ctrl+[和ctrl+]一样

image

cmake supporting??

Hi, I am a new vimer, it seems that it does not support to maintain the project with CMake? am I wrong somewhere? I've run "bear make" after initializing the project using CMake, but it looks like there is no linking between *.h file and related *.cpp file, any suggestion? here is a piece of a screenshot illustrating the issue:

I was using polyscope as the test case, any suggestion would be helpful.

image

coc.vim处理错误

  • Describe the bug
    按照操作,一步步安装,clone博主的rep后,打开nvim出现这个问题:
    image

  • ccls --version
    ccls version 0.20190823.6-1~ubuntu1.20.04.1
    clang version 10.0.0-4ubuntu1

  • nvim --version
    NVIM v0.4.3
    Build type: Release
    LuaJIT 2.1.0-beta

  • Operating System
    Linux Mint 20.1

As a fresh-user

  • fzf can be auto-installed by first use
  • ctags need not be installed
  • nodejs > 14
  • cppman
  • nerd font

[coc.nvim] Server languageserver.ccls failed to start

Snipaste_2022-04-06_17-32-57

  • [coc.nvim] Server languageserver.ccls failed to start: Error: invalid params of initialize: expected array for /workspaceFolders
  • ccls --version0.20190823.6-1
  • nvim --versionv0.7.0-dev+nightly
  • Operating SystemUbuntu 64-bit Linux (v20.04.4 TLS).
  • CocInfo
    Snipaste_2022-04-06_17-57-01
  • checkhealth screenshot
    Snipaste_2022-04-06_18-02-13
    Snipaste_2022-04-06_18-02-28
    Snipaste_2022-04-06_18-02-36

Unable to install neovim config correctly

Error detected while processing /home/stone/.dotfiles/init.vim:
line 73:
E5108: Error executing lua /home/stone/.config/nvim/lua/orgmode-config.lua:1: attempt to call
field 'setup_ts_grammar' (a nil value)
stack traceback:
/home/stone/.config/nvim/lua/orgmode-config.lua:1: in main chunk
[C]: in function 'require'
[string ":lua"]:1: in main chunk
line 74:
E5108: Error executing lua .../start/telescope.nvim/lua/telescope/_extensions/init.lua:11: Th
is extension doesn't exist or is not installed: session-lens
...escope/_extensions/session-lens/session-lens-library.lua:2: module 'auto-session' not foun
d:
no field package.preload['auto-session']
no file './auto-session.lua'
no file '/usr/share/luajit-2.1.0-beta3/auto-session.lua'
no file '/usr/local/share/lua/5.1/auto-session.lua'
no file '/usr/local/share/lua/5.1/auto-session/init.lua'
no file '/usr/share/lua/5.1/auto-session.lua'
no file '/usr/share/lua/5.1/auto-session/init.lua'
no file './auto-session.so'
no file '/usr/local/lib/lua/5.1/auto-session.so'
no file '/usr/lib/lua/5.1/auto-session.so'
no file '/usr/local/lib/lua/5.1/loadall.so'
stack traceback:
[C]: in function 'error'
.../start/telescope.nvim/lua/telescope/_extensions/init.lua:11: in function '__index'
.../start/telescope.nvim/lua/telescope/_extensions/init.lua:55: in function 'load_ext
ension'
/home/stone/.config/nvim/lua/telescope-config.lua:51: in main chunk
[C]: in function 'require'
[string ":lua"]:1: in main chunk
line 75:
E5108: Error executing lua /home/stone/.config/nvim/lua/tree-config.lua:16: attempt to call f
ield 'setup' (a nil value)
stack traceback:
/home/stone/.config/nvim/lua/tree-config.lua:16: in main chunk
[C]: in function 'require'
[string ":lua"]:1: in main chunk
line 77:
E5108: Error executing lua /home/stone/.config/nvim/lua/code-runner-config.lua:1: module 'cod
e_runner' not found:
no field package.preload['code_runner']
no file './code_runner.lua'
no file '/usr/share/luajit-2.1.0-beta3/code_runner.lua'
no file '/usr/local/share/lua/5.1/code_runner.lua'
no file '/usr/local/share/lua/5.1/code_runner/init.lua'
no file '/usr/share/lua/5.1/code_runner.lua'
no file '/usr/share/lua/5.1/code_runner/init.lua'
no file './code_runner.so'
no file '/usr/local/lib/lua/5.1/code_runner.so'
no file '/usr/lib/lua/5.1/code_runner.so'
no file '/usr/local/lib/lua/5.1/loadall.so'
stack traceback:
[C]: in function 'require'
/home/stone/.config/nvim/lua/code-runner-config.lua:1: in main chunk
[C]: in function 'require'
[string ":lua"]:1: in main chunk
Interrupted
Error detected while processing /usr/share/nvim/runtime/ftplugin.vim:
line 1:
Interrupted
Error detected while processing /usr/share/nvim/runtime/indent.vim:
line 1:
Interrupted
Error detected while processing CursorHold Autocommands for "*":
E117: Unknown function: CocActionAsync

Cmake 时遇到错误

2021-10-02 18-02-17屏幕截图
刚开始看到的是您在简书发表的一篇blog,然后那个博客上的nvim是直接下载的,不用编译,一直到最后一步,下载了您提供的配置文件后打开显示出现了一些配置错误,显示需要最新版本的nvim(0.5以上),然后就把那个nvim就卸载了,找到了这个仓库,将结果编译失败,不知道您是否指导这是什么问题,或者有没有之前旧的配置文件。

工程中搜索报错,pointer being freed was not allocated

Martins3 ,你好:

问题一:在阅读readme过程中,尝试使用 ", s" 搜索获得结果后,到某个方法上执行 "gr" ,spacevim会闪退。提示错误 pointer being freed was not allocated.

问题二:",s " 可以搜索工程中文件,而在navigate 中 ",s + 文件" 可以搜索文件,这一步骤,没看明白,我输入", s "后,还是搜索工程中的文件,而不是截图提供的样子。能否详细说一下,感谢🙏

安装复现问题咨询

你好,很高兴你能开源你的项目,但是我在安装时候遇到一些问题,方便加一下个人微信吗?

Blank line in WindTerm

Originally motioned in #68, But I think a separate issue is better, below it's the solution:

see issue kingToolbox/WindTerm#59 to change the fonts:
change

{
	"name": "text.default",
	"style": {
		"foreground": "#F8F8F2",
		"background": "#1c1c1c",
		"fontFamily": "Roboto Mono, Fira Code Retina, Lucida Sans Typewriter, Lucida Console, Monoca",
		"fontSize": 10
	}
}

to

		{
			"name": "text.default",
			"style": {
				"foreground": "#F8F8F2",
				"background": "#1c1c1c",
				"fontFamily": "Hasklug Nerd Font",
				"fontSize": 11
			}
		},

Then the problem fixed:
image

Uploaded images

Whatever takes, putting images here is better than in the repo.

无 format 操作

  • 没有 format 选项(Space r f)

image

  • clang version 13.0.1
  • NVIM v0.7.0-dev+1048-gdba1df635
  • **MACOS 12.1 **
  • SPDebugInfo
  • CocInfo

image

  • checkhealth screenshot

image

怎样控制coc-definition跳转的位置

假设我的项目文件夹是这样的,源代码都在src里,以前用ctags只需要在根目录运行vim,就会自动生成跳转相应的文件。

├── .git
├── doc
├── LICENSE
├── README.md
├── SConstruct
├── src
├── test

现在用coc-definition后,需要根据编译后生成的compile_commands.json文件实现跳转,目录变成了这样:

├── .git
├── build
├── compile_commands.json
├── doc
├── install
├── LICENSE
├── README.md
├── SConstruct
├── src
├── test

用coc.nvim里的跳转只能跳转到install/include文件夹中的文件,而大多数情况下我是想修改src里的相应文件,而不是打开install里的文件。

不知道用其他编译工具生成的compile_commands.json也有这种问题么

[coc.nvim] error: TypeError: this.off is not a function

  • Describe the bug

After installing the coc.nvim, and when I start a cpp file with nvim, it will show the error info everytime.

  • ccls --version
ccls version 0.20190823.5-20-g24dd3bd4
clang version 8.0.0 (tags/RELEASE_800/final)
  • nvim --version
NVIM v0.5.0-445-gca02db1f9
Build type: RelWithDebInfo
LuaJIT 2.1.0-beta3

  • checkhealth screenshot
health#coc#check
========================================================================
  - OK: Environment check passed

  - OK: Javascript bundle found
  - OK: Service started

health#coc#check
========================================================================
  - OK: Environment check passed

  - OK: Javascript bundle found
  - OK: Service started

health#defx#check
========================================================================
## defx.nvim
  - OK: has("python3") was successful
  - OK: Python 3.6.1+ was successful

health#nvim#check
========================================================================
## Configuration
  - OK: no issues found

## Performance
  - OK: Build type: RelWithDebInfo

## Remote Plugins
  - OK: Up to date

## terminal
  - INFO: key_backspace (kbs) terminfo entry: key_backspace=\177
  - INFO: key_dc (kdch1) terminfo entry: key_dc=\E[3~
  - INFO: $VTE_VERSION='5202'
  - INFO: $COLORTERM='truecolor'

## tmux
  - OK: escape-time: 0ms
  - INFO: $TERM: screen-256color
  - WARNING: Neither Tc nor RGB capability set. True colors are disabled. |'termguicolors'| won't work properly.
    - ADVICE:
      - Put this in your ~/.tmux.conf and replace XXX by your $TERM outside of tmux:
          set-option -sa terminal-overrides ',XXX:RGB'
      - For older tmux versions use this instead:
          set-option -ga terminal-overrides ',XXX:Tc'

health#provider#check
========================================================================
## Clipboard (optional)
  - OK: Clipboard tool found: xsel

## Python 2 provider (optional)
  - INFO: `g:python_host_prog` is not set.  Searching for python2 in the environment.
  - INFO: Executable: /usr/bin/python2
  - INFO: Python version: 2.7.15
  - INFO: pynvim version: 0.2.0 (outdated; from /usr/lib/python2.7/dist-packages/neovim)
  - WARNING: Latest pynvim is NOT installed: 0.4.1

## Python 3 provider (optional)
  - INFO: `g:python3_host_prog` is not set.  Searching for python3 in the environment.
  - INFO: Executable: /usr/bin/python3
  - INFO: Python version: 3.6.9
  - INFO: pynvim version: 0.4.1
  - OK: Latest pynvim is installed.

## Python virtualenv
  - OK: no $VIRTUAL_ENV

## Ruby provider (optional)
  - INFO: Ruby: ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-linux-gnu]
  - WARNING: `neovim-ruby-host` not found.
    - ADVICE:
      - Run `gem install neovim` to ensure the neovim RubyGem is installed.
      - Run `gem environment` to ensure the gem bin directory is in $PATH.
      - If you are using rvm/rbenv/chruby, try "rehashing".
      - See :help |g:ruby_host_prog| for non-standard gem installations.

## Node.js provider (optional)
  - INFO: Node.js: v8.10.0
  - WARNING: Missing "neovim" npm (or yarn) package.
    - ADVICE:
      - Run in shell: npm install -g neovim
      - Run in shell (if you use yarn): yarn global add neovim

## Perl provider (optional)
  - WARNING: `perl` and `cpanm` must be in $PATH.
    - ADVICE:
      - Install Perl and cpanminus and verify that `perl` and `cpanm` commands work.


  • Error
[coc.nvim] error: TypeError: this.off is not a function                                                                                
    at ServiceManager.listener (/home/maoyanjun/.cache/vimfiles/repos/github.com/neoclide/coc.nvim/lib/services.js:182:26)             
    at emitOne (events.js:121:20)                                                                                                      
    at ServiceManager.emit (events.js:211:7)                                                                                           
    at service.onServiceReady (/home/maoyanjun/.cache/vimfiles/repos/github.com/neoclide/coc.nvim/lib/services.js:73:18)               
    at CallbackList.invoke (/home/maoyanjun/.cache/vimfiles/repos/github.com/neoclide/coc.nvim/node_modules/vscode-jsonrpc/lib/events.j
s:62:39)                                                                                                                               
    at Emitter.fire (/home/maoyanjun/.cache/vimfiles/repos/github.com/neoclide/coc.nvim/node_modules/vscode-jsonrpc/lib/events.js:121:3
6)                                                                                                                                     
    at client.onReady.then (/home/maoyanjun/.cache/vimfiles/repos/github.com/neoclide/coc.nvim/lib/services.js:296:43)                 
    at <anonymous>

新版本目录树的变动不太适应

升级了新的全版本后,使用中感觉下面这个用着不太适应。
目录树在打开状态的时候,关闭 buffer,会导致目录树直接占据全屏,需要重新打开才能恢复到只占据左侧的大小,希望在关闭一个 buffer 的并且还有其他 buffer 的时候,能让主窗口转到下一个 buffer,然后目录树的窗口保持原本大小。

最后还有个就是,新版本在本地的使用是正常的,但是在在使用 windTerm 远程连接的时候使用,会出现这样的问题,已经尝试了好几种字体,一些字体的情况会好很多,但是在一些情况下依然还是会出现,老版本的时候则没有遇到过。
图片

ccls - refs bug

  • Describe the bug
    the reference of ccls is wrong.
  • ccls --version
    the reference of ccls has a bug.

image

you can see, I think the first ref is about the reference of pci_bus_devfn_reserved, is 2, the second ref is about the reference of bus, is 2, but we can see, the reference of bus is 1, and the third ref is about the reference of devfn, is 1
here is the reference of pci_bus_devfn_reserved

install ripgrep

By the way,

  • fix typo in readme
  • font install doesn't work for me

[help needed] Have two small question after installation.

I have manually fixed the first one but it is not a solid solution.
The telescope cannot find the fzf extension. The error message indicated that the telescope was looking for libfzf.so in ~/.cache/vimfiles/.cache/init.vim/.dein/build directory. I found that file in the cached git repo ~/.cache/vimfiles/repos/github.com/nvim-telescope/telescope-fzf-native.nvim/build. I am still new to this, so I cannot find out a good solution for that.

Another question is the error message "[dein] Vim(let):E745: Using a List as a Number" always pop up when I change into Insert mode for the first time that I open the neovim. I have googled that message and only got an irrelevant post. Is there anyone have seen this message before?

Add auto installation script

Most beginners, including me, can't install vim and plugins correctly out of some trivial reasons, maybe an installation script is helpful.

f查询时,结果显示的时间过短

  • What's your suggestion?

vim中按f查找时,会用a,b,c,d等字符显示出查找字母的位置。如图:
image
这个功能是用什么插件实现的呢?我总感觉这个停留的时间太短了,手没那么快,每次都不能准确地跳转到我想要的位置。

  • Why is better?

能不能自定义查询结果停留的时间?可以延长一些。

  • How to implement your ideas?

这套nvim配置是不支持Windows环境的吧?

我的主要工作环境:
Windows + windterm(ssh) + Ubuntu server

使用ccls+nvim在远程ubuntu server上看Kernel源码,非常好用。

因为要写周报,所以想尝试一下orgmode,发现这套配置无论是放在Windows机器上还是远程Ubuntu服务器上,都有许多快捷键无法工作,是不是一定要纯粹的Linux环境才可以使用呢?

谢谢。

coc complete 出现错误,麻烦解答一下

你好,我在使用你给的 coc.vim 配置使用自动补全有以下问题,请问可能是什么问题?麻烦解答一下:

  • 以下是错误提示
    image

  • ccls --version
    image

  • nvim --version
    image

  • Operating System

Ubuntu

  • SPDebugInfo
```toml
  auto_disable_touchpad = 1
  autocomplete = 'coc'
  autocomplete_method = 'deoplete'
  autocomplete_parens = 1
  bootstrap_before = 'myspacevim#before'
  buffer_index_type = 4
  checkinstall = 1
  colorscheme = 'gruvbox'
  colorscheme_bg = 'dark'
  colorscheme_default = 'desert'
  commandline_prompt = '➭'
  custom_color_palette = []
  custom_plugins = [['mhartington/oceanic-next', {'name': 'mhartington/oceanic-next', 'merge': 0, 'on_cmd': ['OceanNext'], 'overwrite': 1}], ['neoclide/coc.nvim', {'name': 'neoclide/coc.nvim', 'merge': 0,
 'overwrite': 1}], ['voldikss/vim-floaterm', {'name': 'voldikss/vim-floaterm', 'overwrite': 1}]]
  data_dir = '/home/tanfeiyang/.cache/'
  debug_level = 1
  default_custom_leader = '<Space>'
  default_indent = 2
  disabled_plugins = []
  enable_bepo_layout = 0
  enable_cursorcolumn = 0
  enable_cursorline = 1
  enable_debug = 0
  enable_googlesuggest = 0
  enable_guicolors = 0
  enable_javacomplete2_py = 0
  enable_key_frequency = 0
  enable_language_specific_leader = 1
  enable_neocomplcache = 0
  enable_os_fileformat_icon = 0
  enable_powerline_fonts = 1
  enable_projects_cache = 1
  enable_statusline_bfpath = 0
  enable_statusline_mode = 0
  enable_statusline_tag = 1
  enable_tabline_ft_icon = 0
  enable_vimfiler_filetypeicon = 1
  enable_vimfiler_gitstatus = 0
  enable_vimfiler_welcome = 1
  enable_ycm = 0
  error_symbol = '✖'
  escape_key_binding = 'jk'
  expand_tab = 1
  filemanager = 'defx'
  filetree_direction = 'left'
  filetype_icons = {}
  force_global_config = 0
  gitcommit_issue_icon = ''
github_username = ''
  guifont = ''
  hiddenfileinfo = 1
  home_files_number = 6
  hosts_url = 'https://raw.githubusercontent.com/racaljk/hosts/master/hosts'
  info_symbol = 'ⓘ'
  keep_server_alive = 1
  language = ''
  leader_guide_default_group_name = ''
  leader_guide_flatten = 1
  leader_guide_hspace = 5
  leader_guide_max_size = 0
  leader_guide_position = 'botright'
  leader_guide_run_map_on_popup = 1
  leader_guide_sort_horizontal = 0
  leader_guide_submode_mappings = {'<C-C>': 'win_close'}
  leader_guide_vertical = 0
  lint_engine = 'neomake'
  lint_on_save = 1
  lint_on_the_fly = 0
  max_column = 120
  plugin_bundle_dir = '/home/tanfeiyang/.cache/vimfiles/'
  plugin_manager = 'dein'
  plugin_manager_processes = 16
  plugin_name = 'coveragepy.vim'
  project_rooter_automatically = 1
  project_rooter_outermost = 1
  project_rooter_patterns = ['.git/', '_darcs/', '.hg/', '.bzr/', '.svn/', '.SpaceVim.d/']
  projects_cache_num = 20
  realtime_leader_guide = 1
  relativenumber = 1
  search_tools = ['rg', 'ag', 'pt', 'ack', 'grep', 'findstr', 'git']
  sidebar_direction = ''
  sidebar_width = 30
  smartcloseignoreft = ['tagbar', 'vimfiler', 'defx', 'SpaceVimRunner', 'SpaceVimREPL', 'SpaceVimQuickFix', 'HelpDescribe', 'VebuggerShell', 'VebuggerTerminal', 'SpaceVimTabsManager']
  smartcloseignorewin = ['__Tagbar__', 'vimfiler:default']
  snippet_engine = 'neosnippet'
  src_root = 'E:\sources\'
  statusline_iseparator = 'nil'
  statusline_left_sections = ['winnr', 'filename', 'major mode', 'search count', 'syntax checking', 'minor mode lighters']
  statusline_right_sections = ['fileformat', 'cursorpos', 'percentage']
  statusline_separator = 'nil'
  statusline_unicode_symbols = 1
  terminal_cursor_shape = 2
  todo_labels = ['@fixme', '@question', '@todo', '@idea']
  update_retry_cnt = 3
  version = '1.7.0-dev'
  vim_help_language = 'en'
vimcompatible = 0
  warning_symbol = '⚠'
  wildignore = '*/tmp/*,*.so,*.swp,*.zip,*.class,tags,*.jpg,*.ttf,*.TTF,*.png,*/target/*,.git,.svn,.hg,.DS_Store,*.svg'
  windows_index_type = 3
  windows_leader = 's'
  windows_smartclose = 'q'
  • CocInfo
    image

  • checkhealth screenshot
    image
    image

  • spacevim configuration

image

How to quit without save

problem

我想要通过 :q! 不保存修改并退出,但是由于 :q 命令映射成了自动保存并退出,导致 :q! 也会自动保存。

advice

文档中可以提一下需要安装xclip才能在vim中使用系统剪贴板

typo

  1. 很多快捷键都写成了 <space> l r: format, rename, preview
  2. virtual block -> visual block

plugin里修改了配置,未生效

  • Describe the bug
    我clone了您的repo,并在plugin下增加了一些配置,配置却并没有生效;其他的地方都没有改动;请问这是为什么呢?
  • ccls --version
    10.0.1
  • nvim --version
    v0.4.4
  • checkhealth screenshot
    NO ERROR

文件树无法打开

安装后遇到些问题
系统是 manjaro
以前按 2020 年那篇安装的时候,是可以正常使用的。最近更新重装了下,就出问题了,目前主要是这两个问题

F3 无法显示文件树,提示:
E492:Not an editor command: NvimTreeToggle

f s 无法保存,提示:
E5108:Error executing lua [string ":lua"]:1: attempt to index global 'myluamodule' (a nil value)
stack traceback:
[string ":lua"]:1: in main chunk

How to disable java supporting?

In my environment, I don't need java support, and it modifies my project files.

 ❯ git status tools 
On branch develop
Your branch is up to date with 'origin/develop'.

Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git restore <file>..." to discard changes in working directory)
        modified:   tools/loganalysis/.project
        modified:   tools/loganalysis/tests/.project
        modified:   tools/tradefederation/contrib/.project
        modified:   tools/tradefederation/contrib/tests/.project
        modified:   tools/tradefederation/core/.project
        modified:   tools/tradefederation/core/remote/.project
        modified:   tools/tradefederation/core/tests/.project

the file content is modified like below:

diff --git a/tools/loganalysis/.project b/tools/loganalysis/.project
index 427863301a..2ec530659f 100644
--- a/tools/loganalysis/.project
+++ b/tools/loganalysis/.project
@@ -14,4 +14,15 @@
        <natures>
                <nature>org.eclipse.jdt.core.javanature</nature>
        </natures>
+       <filteredResources>
+               <filter>
+                       <id>1639035297888</id>
+                       <name></name>
+                       <type>30</type>
+                       <matcher>
+                               <id>org.eclipse.core.resources.regexFilterMatcher</id>
+                               <arguments>node_modules|.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__</arguments>
+                       </matcher>
+               </filter>
+       </filteredResources>
 </projectDescription>

So, How can I totally disable java support?

关于lsp的问题

我安装了neovim,我想问你你的自动补全插件是用的vim-lsp还是coc.nvim?coc.nvim不也有lsp功能吗?

built-in lsp

I noticed that built-in lsp and using lua as config script became more and more mature and popular, maybe we should follow the trending, but before taking any actions we should find out enough evidence proving there are overwhelming advantages comparing to current configurations.

Built-in lsp and lua related material will be collected and put below.

How to debug with neovim?

你好,我对 SpaceVim 不是很熟悉,我现在已经安装 SpaceVim、ccls,看了几遍你文档和官方文档,但还是有些无从下手,麻烦有时间解答一下。我想实现以下功能:

【1】 Python 光标位置显示定义 Common(类似于 VScode intelligence);
【2】 Python 带有有参数的 Debug。
【3】 可交互式的 Debug。

目前已有配置如下:

image

因为对 VIM 不是特别熟悉,请帮忙尽可能详细描述一下配置步骤。

行号跟 git 标记重叠

  • What's your suggestion?
    1、行号跟 git 标记重叠,如下图所示
    2、相对行号 & 绝对行号之间的自动切换

image

  • Why is better?
    场景:有时候删除多行或者快速选择多行时等需要一眼知道相对行号时,会相对较简单。

  • How to implement your ideas?
    1、需要调整一下行号与git标记的位置
    2、相对行号 & 绝对行号之间的自动切换,可以考虑以下配置:

augroup CursorLineOnlyInActiveWindow
       autocmd!
       " 离开插入模式时
       autocmd InsertLeave * setlocal relativenumber
       " 进入插入模式时
       autocmd InsertEnter * setlocal norelativenumber
       " 进入缓冲区后
       autocmd BufEnter * setlocal cursorline
       " 离开缓冲区后
       autocmd BufLeave * setlocal nocursorline
       " autocmd CompleteDone *.go  call OnGolangCompleteDone()
 augroup END

PS:另附个人自定义配置

" --------- 自定义配置 ---------"
" 设置标记,三个{定义为标记,可用za折叠展开
set foldenable
set foldmethod=marker
autocmd FileType c,cpp,python,vim set foldmethod=indent nofoldenable

" 解决乱码问题
set encoding=utf-8
set termencoding=utf-8
set fileencodings=utf-8,gbk,latin1
set langmenu=zh_CN.UTF-8
set helplang=cn
set ttyfast        "a fast terminal connection.

" 依文件类型设置自动缩进
filetype plugin on
filetype indent on

" 显示当前的行号(普通模式为相对):
set ruler
set number
set relativenumber
augroup CursorLineOnlyInActiveWindow
    autocmd!
    " 离开插入模式时
    autocmd InsertLeave * setlocal relativenumber
    " 进入插入模式时
    autocmd InsertEnter * setlocal norelativenumber
    " 进入缓冲区后
    autocmd BufEnter * setlocal cursorline
    " 离开缓冲区后
    autocmd BufLeave * setlocal nocursorline
    " autocmd CompleteDone *.go  call OnGolangCompleteDone()
augroup END

"显示行尾多余空格与tab符号
set listchars=tab-,trail:set list
"将制表符扩展为空格
set expandtab
"设置编辑时制表符占用空格数
set tabstop=4
"设置格式化时制表符占用空格数
set shiftwidth=4
" 关闭softtabstop 永远不要将空格和tab混合输入
set softtabstop=0
"开启自动缩进
set autoindent   " Indent at the same level of the previous line
"开启智能对齐
set smartindent
"设置使用 C/C++ 语言的自动缩进方式
set cindent
"设置命令行的高度
set cmdheight=1
"设置大小写不敏感/当前为大写字母时调整为敏感/自动改动字母大小写
set ignorecase
set smartcase
set infercase
set smarttab        " insert tabs on the start of a line according to context
set magic
"单词自动补全功能,写博客时用,自定义词典可参考网上教程
""set dictionary+=/usr/share/dict/american-english
set dictionary+=/usr/share/dict/engspchk-dict
set completeopt+=noinsert

".Md文件也能被识别为markdown
autocmd BufNewFile,BufRead *.Md set filetype=markdown
"ejs识别为html
autocmd BufNewFile,BufRead *.ejs set filetype=html
"Scons相关脚本识别为python
autocmd BufNewFile,BufRead SConstruct set filetype=python
autocmd BufNewFile,BufRead SConscript set filetype=python

"不自动分行(但可以分行显示)
set wrap
set textwidth=0

"保存文件
nnoremap <Leader>w  :w!<CR>
"选择全文
noremap <C-a> <Esc>ggVG<CR>
"退出
nnoremap  qw    :wq<CR>

"插入模式下移动光标
inoremap <C-k> <Up>
inoremap <C-h> <Left>
inoremap <C-l> <Right>
inoremap <C-j> <Down>
"向后删除 *为向前删除,shell通用
inoremap <C-d> <Delete>

"超级用户权限编辑,出现权限不够无法保存时命令模式输入sw即可
cnoremap sw w !sudo tee >/dev/null %

"可视模式下用*和#查找选中文本
xnoremap * :<C-u>call <SID>VsetSearch()<CR>/<C-R>=@/<CR><CR>
xnoremap # :<C-u>call <SID>VsetSearch()<CR>?<C-R>=@/<CR><CR>
function! s:VsetSearch()
    let temp=@s
    norm! gv"sy
    let @/ = '\V' . substitute(escape(@s, '/\'), '\n', '\\n','g')
    let @s= temp
endfunction
"" Move visual block
vnoremap K :m '<-2<CR>gv=gv
vnoremap J :m '>+1<CR>gv=gv
"关闭高亮直到下一次查找
cnoremap hl  nohlsearch<CR>

filetree 中新建文件(文件夹)显示 Cannot make changes, 'modifiable' is off

  • Describe the bug

文件树中,创建新文件的命令是a,创建文件夹的命令是A。但是这两个命令在我这里都没办法用。

都显示 Cannot make changes, 'modifiable' is off 。

我猜可能是把 filetree当成文本来识别了,a键映射的命令是插入,导致的这个问题。

image

  • [ NVIM v0.7.0-dev+963-g082ff2190 ] nvim --version
  • [ linux ] Operating System

`,S` 直接在工程中搜索当前光标所在字符

利用 telescope 快速搜索 file的时候,
, o 可以在当前文件中间搜索该符号。

这里我提个小建议。可不可以用大写的O,来直接在当前文档中搜索当前光标所在的符号。因为每次用这个搜索都需要自己输入对应的符号,比较麻烦。

换成大写O直接搜索当前符号也可以和Spacevim之前的快捷键对应。因为我之前是spacevim用户,感觉直接用大写搜索当前光标所在字符非常方便。

同理, , S , , F 也可以安排一下 :)

新年快乐!

startup error with sudo

  • Describe the bug
    已删除系统vim包,将vim软链到nvim。
    使用 sudo vim xxx 有出错提示;不使用sudo可正常运行,无错误提示。

  • ccls --version
    ccls version
    clang version 10.0.0

  • nvim --version
    NVIM v0.6.0-dev+434-g7f93b2ab0
    Build type: RelWithDebInfo
    LuaJIT 2.1.0-beta3
    Compilation: /usr/bin/cc -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -DNVIM_TS_HAS_SET_MATCH_LIMIT -O2 -g -Og -g -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wshadow -Wconversion -Wmissing-prototypes -Wimplicit-fallthrough -Wvla -fstack-protector-strong -fno-common -fdiagnostics-color=always -DINCLUDE_GENERATED_DECLARATIONS -D_GNU_SOURCE -DNVIM_MSGPACK_HAS_FLOAT32 -DNVIM_UNIBI_HAS_VAR_FROM -DMIN_LOG_LEVEL=3 -I/home/jiaxi/git/neovim/build/config -I/home/jiaxi/git/neovim/src -I/home/jiaxi/git/neovim/.deps/usr/include -I/usr/include -I/home/jiaxi/git/neovim/build/src/nvim/auto -I/home/jiaxi/git/neovim/build/include
    Compiled by jiaxi@ehome-hwrd-1

Features: +acl +iconv +tui
See ":help feature-compile"

system vimrc file: "$VIM/sysinit.vim"
fall-back for $VIM: "/usr/local/share/nvim"

Run :checkhealth for more info

  • Operating System
    No LSB modules are available.
    Distributor ID: Ubuntu
    Description: Ubuntu 18.04.6 LTS
    Release: 18.04
    Codename: bionic

  • SPDebugInfo

SpaceVim debug information

SpaceVim options :

  auto_disable_touchpad = 1
  autocomplete_method = 'coc'
  autocomplete_parens = 1
  bootstrap_after = 'myspacevim#after'
  bootstrap_before = 'myspacevim#before'
  buffer_index_type = 4
  checkinstall = 1
  code_runner_focus = 0
  colorscheme = 'OceanicNext'
  colorscheme_bg = 'dark'
  colorscheme_default = 'desert'
  commandline_prompt = ''
  custom_color_palette = []
  custom_plugins = [['mhartington/oceanic-next', {'name': 'mhartington/oceanic-next', 'merged': 0, 'overwrite': 1}], ['neoclide/coc.nvim', {'name': 'neoclide/coc.nvim', 'merge': 0, 'overwrite': 1}], ['antoinemadec/coc-fzf', {'name': 'a
ntoinemadec/coc-fzf', 'branch': 'release', 'overwrite': 1}], ['junegunn/fzf.vim', {'name': 'junegunn/fzf.vim', 'overwrite': 1}], ['dhruvasagar/vim-table-mode', {'name': 'dhruvasagar/vim-table-mode', 'overwrite': 1}], ['liuchengxu/vista
.vim', {'name': 'liuchengxu/vista.vim', 'overwrite': 1}], ['simeji/winresizer', {'name': 'simeji/winresizer', 'overwrite': 1}], ['jackguo380/vim-lsp-cxx-highlight', {'name': 'jackguo380/vim-lsp-cxx-highlight', 'overwrite': 1}], ['skywi
nd3000/vim-cppman', {'name': 'skywind3000/vim-cppman', 'overwrite': 1}], ['rhysd/git-messenger.vim', {'lazy': 1, 'name': 'rhysd/git-messenger.vim', 'on_cmd': 'GitMessenger', 'overwrite': 1}], ['voldikss/vim-floaterm', {'name': 'voldiks
s/vim-floaterm', 'overwrite': 1}], ['google/vim-searchindex.git', {'name': 'google/vim-searchindex.git', 'overwrite': 1}], ['honza/vim-snippets', {'name': 'honza/vim-snippets', 'overwrite': 1}], ['nvim-lua/plenary.nvim', {'name': 'nvim
-lua/plenary.nvim', 'overwrite': 1}], ['nvim-telescope/telescope.nvim', {'name': 'nvim-telescope/telescope.nvim', 'overwrite': 1}], ['fannheyward/telescope-coc.nvim', {'name': 'fannheyward/telescope-coc.nvim', 'overwrite': 1}], ['Coati
Software/vim-sourcetrail', {'name': 'CoatiSoftware/vim-sourcetrail', 'overwrite': 1}], ['nvim-treesitter/nvim-treesitter', {'build': 'TSUpdate', 'name': 'nvim-treesitter/nvim-treesitter', 'overwrite': 1}], ['nvim-telescope/telescope-fz
f-native.nvim', {'build': 'make', 'name': 'nvim-telescope/telescope-fzf-native.nvim', 'overwrite': 1}], ['puremourning/vimspector', {'name': 'puremourning/vimspector', 'overwrite': 1}]]
  data_dir = '/home/jiaxi/.cache/'
  debug_level = 1
  default_custom_leader = '<Space>'
  default_indent = 2
  disabled_plugins = []
  enable_bepo_layout = 0
  enable_cursorcolumn = 0
  enable_cursorline = 1
  enable_debug = 0
  enable_googlesuggest = 0
  enable_guicolors = 1
  enable_javacomplete2_py = 0
  enable_key_frequency = 0
  enable_language_specific_leader = 1
  enable_neocomplcache = 0
  enable_os_fileformat_icon = 0
  enable_powerline_fonts = 1
  enable_projects_cache = 1
  enable_statusline_bfpath = 0
  enable_statusline_display_mode = 0
  enable_statusline_mode = 0
  enable_statusline_tag = 1
  enable_tabline_filetype_icon = 1
enable_tabline_ft_icon = 0
  enable_vimfiler_filetypeicon = 1
  enable_vimfiler_welcome = 1
  enable_ycm = 0
  error_symbol = ''
  escape_key_binding = 'jk'
  expand_tab = 1
  file_searching_tools = []
  filemanager = 'defx'
  filetree_direction = 'right'
  filetype_icons = {}
  force_global_config = 0
  gitcommit_issue_icon = ''
  gitcommit_pr_icon = ''
  github_username = ''
  guifont = ''
  hiddenfileinfo = 1
  home_files_number = 6
  hosts_url = 'https://raw.githubusercontent.com/racaljk/hosts/master/hosts'
  info_symbol = ''
  keep_server_alive = 1
  language = ''
  leader_guide_default_group_name = ''
  leader_guide_flatten = 1
  leader_guide_hspace = 5
  leader_guide_max_size = 0
  leader_guide_position = 'botright'
  leader_guide_run_map_on_popup = 1
  leader_guide_sort_horizontal = 0
  leader_guide_submode_mappings = {'<C-C>': 'win_close'}
  leader_guide_vertical = 0
  lint_engine = 'neomake'
  lint_on_save = 1
  lint_on_the_fly = 0
  max_column = 120
  plugin_bundle_dir = '/home/jiaxi/.cache/vimfiles/'
  plugin_manager = 'dein'
  plugin_manager_processes = 16
  plugin_name = 'vimtex'
  project_auto_root = 1
  project_rooter_outermost = 1
  project_rooter_patterns = ['.git/', '_darcs/', '.hg/', '.bzr/', '.svn/', '.SpaceVim.d/']
  projects_cache_num = 20
  realtime_leader_guide = 1
  relativenumber = 0
  search_tools = ['rg', 'ag', 'pt', 'ack', 'grep', 'findstr', 'git']
  sidebar_direction = ''
  sidebar_width = 30
  smartcloseignoreft = ['tagbar', 'vimfiler', 'defx', 'SpaceVimRunner', 'SpaceVimREPL', 'SpaceVimQuickFix', 'HelpDescribe', 'VebuggerShell', 'VebuggerTerminal', 'SpaceVimTabsManager']
  smartcloseignorewin = ['__Tagbar__', 'vimfiler:default']
  snippet_engine = 'neosnippet'
  src_root = 'E:\sources\'
  statusline_iseparator = 'nil'
  statusline_left_sections = ['winnr', 'filename', 'major mode', 'search count', 'syntax checking', 'minor mode lighters', 'vcs', 'hunks']
  statusline_right_sections = ['fileformat', 'cursorpos', 'percentage']
  statusline_separator = 'bar'
  statusline_unicode = 1
  terminal_cursor_shape = 2
  todo_labels = ['@fixme', '@question', '@todo', '@idea']
  update_retry_cnt = 3
  version = '1.9.0-dev'
  vim_help_language = 'en'
  vimcompatible = 0
  warning_symbol = ''
  wildignore = '*/tmp/*,*.so,*.swp,*.zip,*.class,tags,*.jpg,*.ttf,*.TTF,*.png,*/target/*,.git,.svn,.hg,.DS_Store,*.svg'
  windows_index_type = 3
  windows_leader = 'c'
  windows_smartclose = 'q'
  wrap_line = 0

SpaceVim layers :

[[layers]]
  name="autocomplete"
[[layers]]
  name="format"
[[layers]]
  name="edit"
[[layers]]
  name="ui"
[[layers]]
  name="core"
[[layers]]
  name="core#banner"
[[layers]]
  name="core#statusline"
[[layers]]
  name="core#tabline"
[[layers]]
  name="tools"
[[layers]]
  name="VersionControl"
  enable-gtm-status=1
[[layers]]
  name="git"
  git-plugin='fugitive'
[[layers]]
  name="fzf"
[[layers]]
  name="lang#markdown"
[[layers]]
  name="lang#latex"

SpaceVim Health checking :

SpaceVim clipboard support check report:
Checking +clipboard:
SUCCEED!
SpaceVim environment check report:
Current progpath: vim(/usr/local/bin/nvim)
version: 800
OS: linux
[shell, shellcmdflag, shellslash]: ['/bin/bash', '-c', 0]
SpaceVim lua support check report:
Checking +lua:
Failed : Known issue, neovim do not support lua now.
SpaceVim python support check report:
Checking +python3:
SUCCEED!
Checking +python:
SUCCEED!

SpaceVim runtime log :

[ SpaceVim ] : logger file  does not exists, only log for current process will be shown!
[ SpaceVim ] [11:25:56] [ Info ] Startup with argv: ['plugin/lua.vim']
[ SpaceVim ] [11:25:56] [ Info ] Can not find project local config, start loading global config
[ SpaceVim ] [11:25:56] [ Info ] global_dir is: /home/jiaxi/.SpaceVim.d/
[ SpaceVim ] [11:25:56] [ Info ] start to apply config [glob]
[ SpaceVim ] [11:25:56] [ Info ] SpaceVim server startup at:/tmp/spacevim_nvim_server
[ SpaceVim ] [11:25:56] [ Info ] the func has been added to mode:spell-checking
[ SpaceVim ] [11:25:56] [ Info ] the func has been added to mode:paste-mode
[ SpaceVim ] [11:25:56] [ Error ] npm or yarn is required to build iamcco/markdown-preview and neoclide/vim-node-rpc
[   rooter ] [11:25:56] [ Info ] Load projects cache from: /home/jiaxi/.cache/SpaceVim/projects.json
  • CocInfo
    Error: node is not executable!

  • checkhealth screenshot

telescope: require("telescope.health").check()
========================================================================
## Checking for required plugins
  - OK: plenary installed.
  - WARNING: nvim-treesitter not found. 

## Checking external dependencies
  - OK: rg: found ripgrep 13.0.0 (rev 7ec2fd51ba)
  - OK: fd: found fd 8.2.1

## ===== Installed extensions =====

treesitter: health#treesitter#check
========================================================================
  - ERROR: Failed to run healthcheck for "treesitter" plugin. Exception:
    function health#check[24]..health#treesitter#check, line 2
    Vim(lua):E5108: Error executing lua [string ":lua"]:1: attempt to call field 'check_health' (a nil value)

vim.lsp: require("vim.lsp.health").check()
========================================================================
  - INFO: LSP log level : WARN
  - INFO: Log path: /home/jiaxi/.cache/nvim/lsp.log
  - INFO: Log size: 46 KB

vim.treesitter: require("vim.treesitter.health").check()
========================================================================
  - INFO: Runtime ABI version : 13coc: health#coc#check    
========================================================================    
  - ERROR: Executable node.js not found, install node.js from http://nodejs.org/    
  - ERROR: /bin/bash: node: command not found    
    
  - ERROR: Unable to detect version of node, make sure your node executable is http://nodejs.org/    
  - OK: Javascript bundle build/index.js found    
  - ERROR: service could not be initialized    
    - ADVICE:    
      - Use command ":messages" to get error messages.    
      - Open a issue at https://github.com/neoclide/coc.nvim/issues for feedback.    
    
coc_fzf: health#coc_fzf#check    
========================================================================    
## ctags (optional)    
  - OK: ctag found    
    
## fzf.vim (optional)    
  - WARNING: fzf.vim not found. 'location' won't work, previews won't be available    
    - ADVICE:    
      - Install the following vim plugin    
      -   Plug 'junegunn/fzf.vim'    
    
floaterm: health#floaterm#check    
========================================================================    
## common    
  - INFO: Platform: linux    
  - INFO: Nvim: NVIM v0.6.0-dev+434-g7f93b2ab0    
  - INFO: Plugin: fatal: not a git repository (or any of the parent directories): .git    
    
    
## terminal    
  - OK: Terminal emulator is available    
    
## floating    
  - OK: Floating window is available    
    
nvim: health#nvim#check    
========================================================================    
## Configuration    
  - OK: no issues found    
    
## Performance    
  - OK: Build type: RelWithDebInfo    
    
## Remote Plugins    
  - OK: Up to date    

## terminal
  - INFO: key_backspace (kbs) terminfo entry: key_backspace=\177
  - INFO: key_dc (kdch1) terminfo entry: key_dc=\E[3~

provider: health#provider#check
========================================================================
## Clipboard (optional)
  - OK: Clipboard tool found: xclip

## Python 2 provider (optional)
  - INFO: `g:python_host_prog` is not set.  Searching for python2 in the environment.
  - INFO: Executable: /usr/bin/python2
  - INFO: Python version: 2.7.17
  - INFO: pynvim version: 0.4.3
  - OK: Latest pynvim is installed.

## Python 3 provider (optional)
  - INFO: `g:python3_host_prog` is not set.  Searching for python3 in the environment.
  - INFO: Executable: /usr/bin/python3
  - INFO: Python version: 3.6.9
  - INFO: pynvim version: 0.4.3
  - OK: Latest pynvim is installed.

## Python virtualenv
  - OK: no $VIRTUAL_ENV

## Ruby provider (optional)
  - INFO: Ruby: ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-linux-gnu]
  - INFO: Host: /usr/local/bin/neovim-ruby-host
  - OK: Latest "neovim" gem is installed: 0.9.0

## Node.js provider (optional)
  - WARNING: `node` and `npm` (or `yarn`) must be in $PATH.
    - ADVICE:
      - Install Node.js and verify that `node` and `npm` (or `yarn`) commands work.

## Perl provider (optional)
  - ERROR: perl provider error:
    - ADVICE:
      - "Neovim::Ext" cpan module is not installed

telescope: require("telescope.health").check()
========================================================================
## Checking for required plugins
  - OK: plenary installed.
  - WARNING: nvim-treesitter not found. 

## Checking external dependencies
  - OK: rg: found ripgrep 13.0.0 (rev 7ec2fd51ba)
  - OK: fd: found fd 8.2.1

## ===== Installed extensions =====

treesitter: health#treesitter#check
========================================================================
  - ERROR: Failed to run healthcheck for "treesitter" plugin. Exception:
    function health#check[24]..health#treesitter#check, line 2
    Vim(lua):E5108: Error executing lua [string ":lua"]:1: attempt to call field 'check_health' (a nil value)

vim.lsp: require("vim.lsp.health").check()
========================================================================
  - INFO: LSP log level : WARN
  - INFO: Log path: /home/jiaxi/.cache/nvim/lsp.log
  - INFO: Log size: 46 KB

vim.treesitter: require("vim.treesitter.health").check()
========================================================================
  - INFO: Runtime ABI version : 13

出错信息:
image

Unable to locate package python-pip Ubuntu 20.04

When execute checkhealth in nvim, there might be some error with python2-related problems.
According to :help provider-python, we need to execute python2 -m pip install --user --upgrade pynvim.
However, python2 on ubuntu 20.04 no longer supports installation of python-pip by apt-get install(you still could use apt-get install python3-pip).
You could solve the problem using the link below.
https://stackoverflow.com/questions/61981156/unable-to-locate-package-python-pip-ubuntu-20-04

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.