Skip to content

Commit 6711146

Browse files
committed
Update vim help documentation
1 parent 416a04f commit 6711146

File tree

3 files changed

+55
-10
lines changed

3 files changed

+55
-10
lines changed

DEVELOPMENT.rst

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ Todo
55
----
66

77
#. Clean up, refactor
8-
#. Add documentation availible via help in vim
98
#. Add support for more lsp servers
109
#. Verify the plugin is working with vim built for python3 as well as 2
1110
#. Add rename support

README.rst

+6-5
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,11 @@ Installation
2626

2727
The instruction below is only tested on osX and Linux.
2828

29-
Installation is done by downloading an extracting a release bundle, e.g. using pathogen::
29+
Installation is done by downloading an extracting a release bundle, example::
3030

31-
cd ~/.vim/bundle
32-
wget https://github.com/kristopher-h/vim-liq/releases/download/v0.1.0-beta/vim-liq.tgz
31+
mkdir -p ~/.vim/pack/plugins/start
32+
cd ~/.vim/pack/plugins/start
33+
wget https://github.com/kristopher-h/vim-liq/releases/download/<version>/vim-liq.tgz
3334
tar xzf vim-liq.tgz
3435

3536
.. NOTE::
@@ -60,10 +61,10 @@ Upgrading
6061

6162
To upgrade vim-liq simply remove the old vim-liq folder and redo the installation. Example::
6263

63-
cd ~/.vim/bundle
64+
cd ~/.vim/pack/plugins/start
6465
rm -r vim-liq
6566

66-
After that redo the installation.
67+
After that follow the installation instruction again.
6768

6869
Usage
6970
-----

doc/vim-liq.txt

+49-4
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,69 @@
1-
*vim-liq.txt* A short multi line description of your plugin
1+
*vim-liq.txt* A language server protocol client for VIM
22

33
===============================================================================
44
CONTENTS *vim-liq*
55

66
1. Intro .................................................. |vim-liq-intro|
77
2. Requirements .................................... |vim-liq-requirements|
88
3. Usage .................................................. |vim-liq-usage|
9+
3.1 Key bingings .................................... |vim-liq-keybindings|
910
4. Licence .............................................. |vim-liq-licence|
1011
===============================================================================
1112
1. Intro *vim-liq-intro*
1213

13-
Overview of plugin
14+
vim-liq is a vim client for the Language Server Protocol (LSP). vim-liq stands
15+
for something along the lines of vim- "Language IQ" or "Lingustic
16+
Intelligence".
17+
1418

1519
2. Requirements *vim-liq-requirements*
1620

17-
What additional programs are required to run the plugin
21+
Vim 8, or later, with support for:
22+
23+
- python (2.7)
24+
- autocommands
25+
- quickfix
26+
- timers
27+
- async calls
28+
29+
python 2.7 or later (including python3) is needed to run the python
30+
language server (pyls).
31+
1832

1933
3. Usage *vim-liq-usage*
2034

21-
How to use the plugin. What functions does it give the user?
35+
The following high level, LSP, features have support:
36+
37+
* Completion
38+
* References
39+
* Diagnostics
40+
* Definition
41+
* Symbols
42+
43+
See https://github.com/Microsoft/language-server-protocol for details on the
44+
language server protocol features.
45+
46+
Diagnostics is automatically enabled and uses vim signs. When moving to a line
47+
with a diagnostics mark the message for that line is displayed in the
48+
command-line.
49+
50+
To disable the usage of signs set the following in your .vimrc::
51+
52+
let g:langIQ_disablesigns = 1
53+
54+
55+
3.1. Key bindings *vim-liq-keybindings*
56+
57+
The plugin by default map the following keybindings:
58+
59+
CTRL-Space: completion (insert mode)
60+
.: completion (insert mode)
61+
LEADER-d: goto definition (normal mode)
62+
LEADER-f: find references (normal mode)
63+
64+
To disbale the default key bindings set the following in your .vimrc:
65+
66+
let g:langIQ_disablekeymap = 1
2267

2368
4. Licence *vim-liq-licence*
2469

0 commit comments

Comments
 (0)