-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
77 lines (55 loc) · 3.23 KB
/
README
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
This Repository holds everything in my ~/.vim folder.
I've migrated over to using Plug to manage vim plugins and coc-nvim to provide intellisense via Language Servers using LSP. To use them, however, I've had to use vim >= 8.1 which required me to build it from source. Newer distro versions seem to have a vim package with Version 8+
After installing, be sure to run `:PlugInstall` in vim to first install the vim plugins chosen in `.vimrc`
Then, proceed with setting up coc.vim:
I've commented out all my common coc extensions in install_coc_extensions.sh. Just uncomment the ones you want, then install those coc.nvim plugins by running the install_coc_extensions.sh file. My usuall coc-plugins included are:
(found from https://www.npmjs.com/search?q=keywords%3Acoc.nvim&page=1&perPage=20)
coc-pyright (for python3)
coc-phpls
coc-html
coc-json
coc-gitignore
coc-java
coc-xml
coc-sh
coc-elixir
coc-prettier
coc-tsserver
coc-snippet
Note: ** check extestion status with
extensions can be managed according to: https://github.com/neoclide/coc.nvim/wiki/Using-coc-extensions
coc-settings.json is configured to allow the following external language servers:
Elm(https://github.com/elm-tooling/elm-language-server):
// pre-req
npm install -g elm elm-test elm-format
// install language server
npm install -g @elm-tooling/elm-language-server
Scala
//needs metals
// see Not yet supporting Scala 2.12.9 for all features: see https://github.com/scalameta/metals/issues/856
Pre-migration setup:
// Generally, I use The Pathogen plugin to manage my plugins, and I strongly reccomend you switch to using it too.
//
// The update_bundles script was written by Tammer Saleh, and published by him in his blog post which talks about why we should switch to Pathogen plugin for vim:
//
// http://tammersaleh.com/posts/the-modern-vim-config-with-pathogen
//
// His update_bundles script will remove plugins from the bundle folder, then grab the most updated version from their respective git repositories. You can modify that script to include/exclude your vim plugins which reside in ./bundle
//no longer using scala... so ignore the following block
//I have added scala support for exuberant-ctags by adding a .ctag file containing regex expressions found on
//
//http://latestbuild.net/scala-ctags-and-vim-tagbar
//
//to add scala support to ctags, copy the .ctags file to ~/.ctags.
//
//update_external_configs.sh will copy files such as .vimrc and .tags to their locations outside this folder. Be carefull that you don't overide your own settings.
// In the .vimrc, "set tags=/usr/local/src/tags" loads the tags which I made from various source code kept in /usr/local/src. The 'tags' file is made using exuberant-ctags:
//
// cd /usr/local/src/
// tags -R *
//
// you can adjust this to suite your own source code locations.
//
// I've started using neocomplete for elm development, but that requires vim to be compiled with lua. To install vim that is compiled with lua and other goodies, see https://gist.github.com/neildaemond/1fb83611a84c4ea19ec1fd462e47d081
//
// Otherwise, you'll have to comment out the neocomplete related items in .vimrc