Skip to content

Commit 58d6ea1

Browse files
authored
Merge pull request #179 from shadmeoli/master
update Lazy setup guide update
2 parents 3987ee7 + 421bc2e commit 58d6ea1

File tree

1 file changed

+17
-7
lines changed

1 file changed

+17
-7
lines changed

README.md

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,24 +17,34 @@
1717
Or with [Vim-plug](https://github.com/junegunn/vim-plug): add `Plug 'wakatime/vim-wakatime'` to .vimrc file. While in vim reload .vimrc with `:so ~/.vimrc` or restart vim, enter
1818
`:PlugInstall`
1919

20-
Or with [Packer](https://github.com/wbthomason/packer.nvim): add `use 'wakatime/vim-wakatime'` to your plugins file.
20+
Or with [Packer](https://github.com/wbthomason/packer.nvim): add `use 'wakatime/vim-wakatime'` to your plugins file.
21+
2122
Or with [Vim 8+](https://www.vim.org/): `mkdir -p ~/.vim/pack/plugins/start && ~/.vim/pack/plugins/start && git clone https://github.com/wakatime/vim-wakatime.git`
2223

23-
Then start `vim`. You should be prompted to enter your WakaTime [API Key](https://wakatime.com/settings#apikey).
24+
Or with [Lazy.nvim](https://github.com/folke/lazy.nvim.git): add to your plugins file.
25+
```lua
26+
{
27+
"wakatime/vim-wakatime",
28+
lazy=false,
29+
setup = function ()
30+
vim.cmd([[packadd wakatime/vim-wakatime]])
31+
end
32+
}
33+
```
34+
35+
3. Restart Vim.
2436

25-
2. Enter your [API Key](https://wakatime.com/settings#apikey), then press `enter`.
37+
4. If this is the first WakaTime plugin on your machine, enter your [API Key](https://wakatime.com/settings#apikey), then press `enter`.
2638

27-
3. Use Vim and your coding activity will be displayed on your [WakaTime dashboard](https://wakatime.com).
39+
5. Use Vim and your coding activity will be displayed on your [WakaTime dashboard](https://wakatime.com).
2840

2941

3042
## Screen Shots
3143

3244
![Project Overview](https://wakatime.com/static/img/ScreenShots/Screen-Shot-2016-03-21.png)
3345

3446

35-
## Configuring
36-
37-
#### Commands:
47+
## Commands
3848

3949
* `:WakaTimeApiKey` - change the api key saved in your `~/.wakatime.cfg`
4050
* `:WakaTimeDebugEnable` - enable debug mode (may slow down Vim so disable when finished debugging)

0 commit comments

Comments
 (0)