-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathneovim_install.txt
50 lines (37 loc) · 1.19 KB
/
neovim_install.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
---
Install plugin using Vim's "packages" feature, without 3rd-party plugin manager.
copy plugin directory under: ~/.config/nvim/pack/nvim/start/ ,
as shown in the nvim-lspconfig plugin example.
# https://github.com/neovim/nvim-lspconfig?tab=readme-ov-file ,
$ git clone https://github.com/neovim/nvim-lspconfig ~/.config/nvim/pack/nvim/start/nvim-lspconfig #
$
$ tree ~/.config/
└── nvim
├── init.lua
└── pack
└── nvim
└── start
└── nvim-lspconfig
├── doc
├── LICENSE.md
├── lua
│ ├── lspconfig
├── plugin
│ └── lspconfig.lua
├── README.md
└── test
$
$
$ cat ~/.config/nvim/init.lua
-- ~/.config/nvim/init.lua
-- https://neovim.io/doc/user/nvim.html#nvim-from-vim ,
-- use init.lua instead of init.vim ,
vim.opt.runtimepath:prepend("~/.vim")
vim.opt.runtimepath:append("~/.vim/after")
vim.opt.packpath = vim.opt.runtimepath:get()
vim.cmd("source ~/.vimrc")
-- LSP
require'lspconfig'.clangd.setup{}
--
$
---