1.2 KiB
1.2 KiB
Configuring neovim
https://www.youtube.com/watch?v=stqUbv-5u2s https://github.com/nvim-lua/kickstart.nvim/blob/master/init.lua
- Copy init.lua from the github link to
~/.config/nvim/init.lua - Next time when nvim is started all plugins definied in this will be loaded
- Press space then type
sfto switch through files - Type
:Telescope keymapsto get some new keymaps feature - Type
:Masonto install language servers for autocompletions
Plugins
-
Install vim plug
sh -c 'curl -fLo "${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/autoload/plug.vim --create-dirs \ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim' -
Configure vim-plug To install plugins like coc.nvim type following in
init.vimorvimrc.vimcall plug#begin() Plug 'neoclide/coc.nvim', {'branch': 'release'} call plug#end()
As init.lua is already there so init.vim cant be there so change its name to vimrc.vim and include it in init.lua like this
local vimrc = vim.fn.stdpath("config") .. "/vimrc.vim"
vim.cmd.source(vimrc)
- PlugInstall
Then in neovim type
:PlugInstallto install plugin listed invimrc.vimfile. and remaining extensions like this:CocInstall coc-json coc-tsserver