Add vimeasyalign, fixup some Linux scripts
This commit is contained in:
+44
-10
@@ -8,24 +8,24 @@ call plug#begin(stdpath('config') . '/plugged')
|
||||
Plug 'https://github.com/tpope/vim-abolish'
|
||||
Plug 'https://github.com/LunarVim/bigfile.nvim'
|
||||
|
||||
" TODO: 2022-06-19 Treesitter is too slow on large C++ files
|
||||
" Plug 'https://github.com/nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'}
|
||||
Plug 'https://github.com/bfrg/vim-cpp-modern'
|
||||
|
||||
" FZF
|
||||
Plug 'junegunn/fzf'
|
||||
Plug 'ibhagwan/fzf-lua', {'branch': 'main'}
|
||||
Plug 'nvim-tree/nvim-web-devicons'
|
||||
|
||||
" Harpoon
|
||||
" Other ////////////////////////////////////////////////////////////////////////////////////////
|
||||
" TODO: 2022-06-19 Treesitter is too slow on large C++ files
|
||||
" Plug 'https://github.com/nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'}
|
||||
Plug 'junegunn/vim-easy-align'
|
||||
Plug 'https://github.com/bfrg/vim-cpp-modern'
|
||||
Plug 'https://github.com/ggandor/leap.nvim'
|
||||
Plug 'https://github.com/sainnhe/gruvbox-material'
|
||||
Plug 'https://github.com/Tetralux/odin.vim' "Odin Syntax highlighting
|
||||
|
||||
" Harpoon //////////////////////////////////////////////////////////////////////////////////////
|
||||
Plug 'nvim-lua/plenary.nvim'
|
||||
Plug 'ThePrimeagen/harpoon', {'branch': 'harpoon2'}
|
||||
|
||||
" odin for syntax highlighting
|
||||
Plug 'https://github.com/Tetralux/odin.vim'
|
||||
Plug 'https://github.com/sainnhe/gruvbox-material'
|
||||
Plug 'https://github.com/ggandor/leap.nvim'
|
||||
|
||||
" lsp-zero begin
|
||||
" LSP Support
|
||||
Plug 'williamboman/mason.nvim'
|
||||
@@ -364,3 +364,37 @@ nnoremap <leader>s :vs<CR>
|
||||
" Go to previous error
|
||||
nnoremap <A-j> :cn<CR>
|
||||
nnoremap <A-k> :cp<CR>
|
||||
|
||||
" In Neovim terminal, pressing <ESC> should go back into normal mode.
|
||||
" Without this, this doesn't happen and you stay stuck in insert mode.
|
||||
tnoremap <Esc> <C-\><C-n>
|
||||
|
||||
" Easy-Align ///////////////////////////////////////////////////////////////////////////////////////
|
||||
let g:easy_align_delimiters = {
|
||||
\ '>': { 'pattern': '>>\|=>\|>' },
|
||||
\ '/': {
|
||||
\ 'pattern': '//\+\|/\*\|\*/',
|
||||
\ 'delimiter_align': 'l',
|
||||
\ 'ignore_groups': ['!Comment'] },
|
||||
\ ']': {
|
||||
\ 'pattern': '[[\]]',
|
||||
\ 'left_margin': 0,
|
||||
\ 'right_margin': 0,
|
||||
\ 'stick_to_left': 0
|
||||
\ },
|
||||
\ ')': {
|
||||
\ 'pattern': '[)]',
|
||||
\ 'left_margin': 0,
|
||||
\ 'right_margin': 0,
|
||||
\ 'stick_to_left': 0
|
||||
\ },
|
||||
\ '(': {
|
||||
\ 'pattern': '[(]',
|
||||
\ 'left_margin': 0,
|
||||
\ 'right_margin': 0,
|
||||
\ 'stick_to_left': 0
|
||||
\ },
|
||||
\ }
|
||||
|
||||
" Enter live-interactive easy align mode when a visual selection is active
|
||||
xmap <leader>a <Plug>(LiveEasyAlign)
|
||||
|
||||
Reference in New Issue
Block a user