Add source-link plugin

This commit is contained in:
Sonny Bakker 2024-12-09 20:38:36 +01:00
parent e737c4f44b
commit f1196f4c42
4 changed files with 17 additions and 0 deletions

View file

@ -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

View file

@ -12,3 +12,4 @@ require('_telescope')
require('indent-blankline')
require('_nvim-tree')
require('colorscheme')
require('_source-link')

View 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)

View file

@ -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'