nix: Even more vim plugins!

This commit is contained in:
Geoffrey Frogeye 2023-10-31 22:26:01 +01:00
parent f16367105d
commit e6f25d9fac
Signed by: geoffrey
GPG key ID: C72403E7F82E6AD8
11 changed files with 65 additions and 54 deletions

View file

@ -16,30 +16,6 @@
" Theme
source ~/.config/vim/theme.vim
" Search/replace
{{ use_plugin('abolish') }}
{{ use_plugin('easy_align') }}
" Sourounding pairs
{{ use_plugin('surround') }}
{{ use_plugin('targets') }}
" f/F mode
{{ use_plugin('shot_f') }}
{{ use_plugin('quick_scope') }}
" Registers
{{ use_plugin('registers') }}
" Tags/Symbols
{{ use_plugin('gutentags') }}
{% if variant == 'nvim' %}
{{ use_plugin('symbols-outline') }}
{% else %}
{{ use_plugin('vista') }}
{% endif %}
" Language Server Client
{% if variant == 'nvim' %}
{{ use_plugin('nvim_lspconfig') }}

View file

@ -1,2 +0,0 @@
{# Regex for words, with case in mind #}
{{ add_source('tpope/tpope-vim-abolish') -}}

View file

@ -1,4 +0,0 @@
{# Aligning lines around a certain character #}
{{ add_source('junegunn/vim-easy-align') -}}
" Align GitHub-flavored Markdown tables
au FileType markdown vmap <Bar> :EasyAlign*<Bar><Enter>

View file

@ -1,3 +0,0 @@
{# Generate tags #}
{{ add_source('ludovicchabant/vim-gutentags') -}}
let g:gutentags_cache_dir = expand('~/.cache/{{ variant }}/tags')

View file

@ -1,2 +0,0 @@
{# Auto-highlight one character per word for quick f/F movement #}
{{ add_source('unblevable/quick-scope') -}}

View file

@ -1,2 +0,0 @@
{# Show register content when pressing " #}
{{ add_source('tversteeg/registers.nvim') -}}

View file

@ -1,2 +0,0 @@
{# When in f/F/t/T mode, highlight in red the characters that can be jumped to #}
{{ add_source('deris/vim-shot-f') -}}

View file

@ -1,2 +0,0 @@
{# Change surroundings pairs (e.g. brackets, quotes… #}
{{ add_source('tpope/vim-surround') -}}

View file

@ -1,26 +0,0 @@
{# Show a symbol panel on the right #}
{{ add_source('simrat39/symbols-outline.nvim') -}}
nmap <space>s :SymbolsOutline<CR>
lua << EOF
vim.g.symbols_outline = {
highlight_hovered_item = true,
show_guides = true,
auto_preview = true,
position = 'right',
show_numbers = false,
show_relative_numbers = false,
show_symbol_details = true,
keymaps = {
close = "<Esc>",
goto_location = "<Cr>",
focus_location = "o",
hover_symbol = "<C-space>",
rename_symbol = "r",
code_actions = "a",
},
lsp_blacklist = {},
}
EOF
{# TODO Should be hierarchical, doesn't seem to be :/ #}

View file

@ -1,2 +0,0 @@
{# Better interaction with surrounding pairs #}
{{ add_source('wellle/targets.vim') -}}