README.md (view raw)
1# NVIM Custom Links
2
3Set words as links with custom path un Neovim.
4
5## LazyVim
6
7```lua
8return {
9 {
10 "https://git.5ika.ch/nvim-custom-links.git",
11 config = function()
12 vim.cmd([[
13 let g:custom_links_project_base_path = '~/projects'
14 let g:custom_links_area_base_path = '~/areas'
15 let g:project_template_path = '~/templates/project.md'
16 let g:area_template_path = '~/templates/area.md'
17 ]])
18 end,
19 },
20}
21```
22
23## Use
24
25In a file, hover a word starting by `+` (project) or `@` (area)
26then `<leader>fl` to open the file.
27
28If the file does not exist, it is created using the provided
29template file.
30
31## TODO
32
33- [ ] Have dynamic variables in template files