imochoa / dotfiles

collection of the setting that I like as well as some scripts to automate the post-install setup process
MIT License
0 stars 0 forks source link

neovim setup #31

Open imochoa opened 4 years ago

imochoa commented 4 years ago

CoC requires: sudo snap install node --classic --channel=8

imochoa commented 4 years ago

sudo apt-get install llvm and sudo apt-get install clang

something like that... https://clangd.llvm.org/installation.html

sudo apt-get install clangd-9 sudo update-alternatives --install /usr/bin/clangd clangd /usr/bin/clangd-9 100

imochoa commented 4 years ago

IN!

mkdir -p ~/.config/nvim/pack/minpac/opt/minpac
git clone https://github.com/k-takata/minpac.git ~/.config/nvim/pack/minpac/opt/minpac
imochoa commented 4 years ago

IN!

sudo update-alternatives --install /usr/bin/neovim  editor ~/Applications/nvim.appimage 100
sudo update-alternatives --config editor

Or nvim?

imochoa commented 4 years ago

https://askubuntu.com/questions/69722/how-to-change-default-application-if-it-is-missing-in-other-applications-list

Put in ~/.local/share/applications/neovim.desktop

https://github.com/neovim/neovim/blob/master/runtime/nvim.desktop

plus:

[Desktop Entry]
Name=Neovim
Comment=Edit TEX files
Exec=texstudio %f
Terminal=false
Type=Application
Icon=texstudio
Categories=TextEditor;
StartupNotify=true
MimeType=text/x-text;

plus https://www.reddit.com/r/neovim/comments/9rjab6/open_with_neovim_doesnt_work/

Update the DB

sudo update-desktop-database

imochoa commented 3 years ago

To update with minpac from the command line, use:

nvim +"packadd minpac | call minpac#init() | call minpac#update()" 

That way it doesn't depend on having the same vimrc config