Add source-link plugin
This commit is contained in:
parent
e737c4f44b
commit
f1196f4c42
4 changed files with 17 additions and 0 deletions
|
|
@ -160,6 +160,12 @@
|
|||
src: 'templates/nvim/lua/colorscheme.lua.j2',
|
||||
dest: '{{ xdg_config_dir }}/nvim/lua/colorscheme.lua',
|
||||
}
|
||||
- {
|
||||
src: 'templates/nvim/lua/source-link.lua.j2',
|
||||
dest: '{{ xdg_config_dir }}/nvim/lua/_source-link.lua',
|
||||
}
|
||||
|
||||
|
||||
|
||||
- block:
|
||||
- name: create neovim install directory
|
||||
|
|
|
|||
|
|
@ -12,3 +12,4 @@ require('_telescope')
|
|||
require('indent-blankline')
|
||||
require('_nvim-tree')
|
||||
require('colorscheme')
|
||||
require('_source-link')
|
||||
|
|
|
|||
9
templates/nvim/lua/source-link.lua.j2
Normal file
9
templates/nvim/lua/source-link.lua.j2
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
-- {{ ansible_managed }}
|
||||
|
||||
local source_link = require('source-link')
|
||||
|
||||
source_link.setup()
|
||||
|
||||
local opts = { noremap = true, silent = true }
|
||||
|
||||
vim.api.nvim_set_keymap('n', '<C-L>', '<cmd>:SourceOpen<CR>', opts)
|
||||
|
|
@ -8,6 +8,7 @@ dotfiles_repo: 'git@forgejo.fudiggity.nl:sonny/dotfiles.git'
|
|||
public_dotfiles_repo: 'git@forgejo.fudiggity.nl:sonny/dotfiles.git'
|
||||
|
||||
neovim_plugins:
|
||||
- { url: 'https://forgejo.fudiggity.nl/sonny/source-link.lua', name: 'source-link' }
|
||||
- { url: 'https://github.com/nvim-tree/nvim-tree.lua', name: 'nvim-tree' }
|
||||
- {
|
||||
url: 'https://github.com/nvim-tree/nvim-web-devicons', name: 'nvim-tree-icons'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue