neovim

YouCompleteMe can't find local header files

半城伤御伤魂 提交于 2021-02-19 07:43:30
问题 I currently have a project that is structured as so project | |----src/ | | | |----test.cpp | |----include/ | | | |----test.hpp | |----.ycm_extra_conf.py But I can't get YouCompleteMe to recognize test.hpp when it's include in test.cpp #include "test.hpp" This is the output of my :YcmDebugInfo Printing YouCompleteMe debug information... -- Client logfile: /tmp/ycm_tcrryhfo.log -- Server Python interpreter: /usr/bin/python2.7 -- Server Python version: 2.7.14 -- Server has Clang support

vim/neovim callback on terminal command completion

落花浮王杯 提交于 2021-02-11 13:10:53
问题 So now both vim and neovim support terminal emulators inside them (with the terminal command). (I use neovim.) I often open a terminal inside vim and run some long running build/test command in it, I then close its window in order to save space for coding. I then have to check back on that terminal periodically to see if the command it ran has completed. Is there a way vim can listen to terminal command completion (through interprocess communication or some other way) ? That way I can

初探在WSL中设置vim前端开发环境

为君一笑 提交于 2020-08-05 07:22:35
在之前的 《在win10的WSL中设置前端开发环境》 一文中,介绍了 win10 结合其 linux 子系统(WSL)的前端开发设置,使用的是 VSCode 开发工具。 如果出于追求工具轻量化、减轻系统负担,或应付临时开发场景等目的,只需要简单设置一下 vim 开发环境,也能达到类似的效果。 话不多说,直接上干货~ 最终效果 在 WSL (Ubuntu 18.04) 终端中: 安装 neovim 和插件管理器 sudo apt install neovim curl -f Lo ~/.local/share/nvim/site/ autoload /plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim mkdir ~/.config/nvim 复制代码 编辑配置文件 ~/.config/nvim/init.vim : call plug #begin("~/.vim/plugged") Plug 'dracula/vim' Plug 'posva/vim-vue' Plug 'leafgarland/typescript-vim' Plug 'peitalin/vim-jsx-typescript' Plug 'preservim/nerdtree'

How to activate keybindings from neovim in vscode?

China☆狼群 提交于 2020-07-23 06:16:08
问题 According to their readme: https://github.com/asvetliakov/vscode-neovim, I have put the following in ~/.config/Code/User/keybindings.json : [ { "command": "vscode-neovim.compositeEscape2", "key": "k", "when": "neovim.mode == insert", "args": "k" } ] However, after saving and restarting the vs, the escape is still not triggered when jk is pressed. Why is it? 回答1: First make sure you have neovim installed then add the following to your keybindings.json : { "command": "vscode-neovim

How to activate keybindings from neovim in vscode?

断了今生、忘了曾经 提交于 2020-07-23 06:15:32
问题 According to their readme: https://github.com/asvetliakov/vscode-neovim, I have put the following in ~/.config/Code/User/keybindings.json : [ { "command": "vscode-neovim.compositeEscape2", "key": "k", "when": "neovim.mode == insert", "args": "k" } ] However, after saving and restarting the vs, the escape is still not triggered when jk is pressed. Why is it? 回答1: First make sure you have neovim installed then add the following to your keybindings.json : { "command": "vscode-neovim

How to activate keybindings from neovim in vscode?

柔情痞子 提交于 2020-07-23 06:14:16
问题 According to their readme: https://github.com/asvetliakov/vscode-neovim, I have put the following in ~/.config/Code/User/keybindings.json : [ { "command": "vscode-neovim.compositeEscape2", "key": "k", "when": "neovim.mode == insert", "args": "k" } ] However, after saving and restarting the vs, the escape is still not triggered when jk is pressed. Why is it? 回答1: First make sure you have neovim installed then add the following to your keybindings.json : { "command": "vscode-neovim

How to activate keybindings from neovim in vscode?

↘锁芯ラ 提交于 2020-07-23 06:14:07
问题 According to their readme: https://github.com/asvetliakov/vscode-neovim, I have put the following in ~/.config/Code/User/keybindings.json : [ { "command": "vscode-neovim.compositeEscape2", "key": "k", "when": "neovim.mode == insert", "args": "k" } ] However, after saving and restarting the vs, the escape is still not triggered when jk is pressed. Why is it? 回答1: First make sure you have neovim installed then add the following to your keybindings.json : { "command": "vscode-neovim