You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: CHANGELOG.md
+1
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,7 @@ All notable changes to this project will be documented in this file.
7
7
### Improvements
8
8
9
9
- feat(documentation): add missing functions to `stubs/` and adjust the format to match the rest of other stdlib doc `///` comments in https://github.com/tact-lang/tact-language-server/pull/189
10
+
- feat(documentation): add installation instructions for Vim 8+ in https://github.com/tact-lang/tact-language-server/pull/231
Copy file name to clipboardexpand all lines: README.md
+63
Original file line number
Diff line number
Diff line change
@@ -119,6 +119,69 @@ Setup steps:
119
119
require'lspconfig'.tact.setup {}
120
120
```
121
121
122
+
### Vim
123
+
124
+
Prerequisites:
125
+
126
+
- Vim 8 or newer
127
+
- Async LSP Client for Vim: [vim-lsp](https://github.com/prabirshrestha/vim-lsp)
128
+
- Plugin for Tact: [tact.vim](https://github.com/tact-lang/tact.vim)
129
+
130
+
Recommended, but not required:
131
+
132
+
- Auto-configurations for many language servers: [vim-lsp-settings](https://github.com/mattn/vim-lsp-settings)
133
+
134
+
Setup steps:
135
+
136
+
1. Install the [tact.vim](https://github.com/tact-lang/tact.vim) if it isn't already installed. Prefer using a non-builtin plugin manager to easily get new updates.
137
+
138
+
2. Install the [vim-lsp](https://github.com/prabirshrestha/vim-lsp) plugin if it isn't already installed. For that, use [vim-plug](https://github.com/junegunn/vim-plug) or the built-in package manager of Vim 8+, see [`:help packages`](https://vimhelp.org/repeat.txt.html#packages).
139
+
140
+
- If it wasn't installed before, you'll need to setup basic keybindings with the language client. Add the following to your `~/.vimrc` (or `~/_vimrc` if you're on Windows), or modify to your preferences:
141
+
142
+
```vim
143
+
function! s:on_lsp_buffer_enabled() abort
144
+
setlocal omnifunc=lsp#complete
145
+
setlocal signcolumn=yes
146
+
if exists('+tagfunc') | setlocal tagfunc=lsp#tagfunc | endif
0 commit comments