Mercurial > dotfiles
comparison dot_config/nvim/config.lua @ 371:1dfda47d5d9e
Add more lua based plugins: lush, navigator, numb
author | zegervdv <zegervdv@me.com> |
---|---|
date | Wed, 07 Apr 2021 17:13:37 +0200 |
parents | 5ffb0fd7b98d |
children | 6d1a9a926383 |
comparison
equal
deleted
inserted
replaced
370:5ffb0fd7b98d | 371:1dfda47d5d9e |
---|---|
66 use {'raimondi/delimitMate'} | 66 use {'raimondi/delimitMate'} |
67 | 67 |
68 -- Moving around within lines | 68 -- Moving around within lines |
69 use {'wellle/targets.vim', event = 'InsertEnter *'} | 69 use {'wellle/targets.vim', event = 'InsertEnter *'} |
70 | 70 |
71 -- Peek at lines | |
72 use { | |
73 'nacro90/numb.nvim', | |
74 config = require'numb'.setup, | |
75 } | |
76 | |
71 -- Searching | 77 -- Searching |
72 use {'mhinz/vim-grepper', cmd = {'Grepper'}} | 78 use {'mhinz/vim-grepper', cmd = {'Grepper'}} |
79 | |
80 -- Keymaps TODO: to be removed when #13823 is merged | |
81 use { | |
82 'tjdevries/astronauta.nvim', | |
83 config = function() require'astronauta.keymap' end, | |
84 } | |
73 | 85 |
74 -- Indent lines | 86 -- Indent lines |
75 use { | 87 use { |
76 'lukas-reineke/indent-blankline.nvim', | 88 'lukas-reineke/indent-blankline.nvim', |
77 branch = 'lua', | 89 branch = 'lua', |
104 | 116 |
105 -- Tmux | 117 -- Tmux |
106 function test_tmux() | 118 function test_tmux() |
107 return os.getenv('TMUX') ~= nil | 119 return os.getenv('TMUX') ~= nil |
108 end | 120 end |
109 use {'christoomey/vim-tmux-navigator'} | |
110 use {'tmux-plugins/vim-tmux-focus-events', cond = test_tmux} | 121 use {'tmux-plugins/vim-tmux-focus-events', cond = test_tmux} |
122 use { | |
123 'numtostr/navigator.nvim', | |
124 config = function() | |
125 require('Navigator').setup { auto_save = 'current', disable_on_zoom = false } | |
126 | |
127 local nnoremap = vim.keymap.nnoremap | |
128 nnoremap { '<c-h>', require'Navigator'.left } | |
129 nnoremap { '<c-j>', require'Navigator'.down } | |
130 nnoremap { '<c-k>', require'Navigator'.up } | |
131 nnoremap { '<c-l>', require'Navigator'.right } | |
132 end | |
133 } | |
111 | 134 |
112 -- Completion/snippets/LSP | 135 -- Completion/snippets/LSP |
113 use {'neovim/nvim-lspconfig'} | 136 use {'neovim/nvim-lspconfig'} |
114 use { | 137 use { |
115 'hrsh7th/nvim-compe', | 138 'hrsh7th/nvim-compe', |
345 -- File navigation | 368 -- File navigation |
346 use {'justinmk/vim-dirvish'} | 369 use {'justinmk/vim-dirvish'} |
347 | 370 |
348 -- Colorscheme | 371 -- Colorscheme |
349 use {'zegervdv/nvcode-color-schemes.vim'} | 372 use {'zegervdv/nvcode-color-schemes.vim'} |
373 use { | |
374 'zegervdv/one-lush', | |
375 requires = 'rktjmp/lush.nvim', | |
376 config = function() | |
377 local lush = require('lush') | |
378 local spec = require('lush_theme.one-lush') | |
379 lush(spec) | |
380 end, | |
381 } | |
350 | 382 |
351 -- Terminal | 383 -- Terminal |
352 use { | 384 use { |
353 'akinsho/nvim-toggleterm.lua', | 385 'akinsho/nvim-toggleterm.lua', |
354 config = function() | 386 config = function() |