initial
This commit is contained in:
commit
74ae93a96e
1 changed files with 94691 additions and 0 deletions
|
|
@ -0,0 +1,39 @@
|
|||
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 `sf` to switch through files
|
||||
- Type `:Telescope keymaps` to get some new keymaps feature
|
||||
- Type `:Mason` to 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.vim` or `vimrc.vim`
|
||||
```text
|
||||
call 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
|
||||
```lua
|
||||
local vimrc = vim.fn.stdpath("config") .. "/vimrc.vim"
|
||||
vim.cmd.source(vimrc)
|
||||
```
|
||||
|
||||
- PlugInstall
|
||||
Then in neovim type `:PlugInstall` to install plugin listed in `vimrc.vim` file.
|
||||
and remaining extensions like this
|
||||
`:CocInstall coc-json coc-tsserver`
|
||||
|
||||
Loading…
Reference in a new issue