diff options
| author | Robert Günzler <r@gnzler.io> | 2021-05-31 16:55:12 +0200 |
|---|---|---|
| committer | Robert Günzler <r@gnzler.io> | 2021-05-31 16:56:02 +0200 |
| commit | 48c6c952a9fccc1cc46f6cb8d817d5a4266a7c10 (patch) | |
| tree | 13496c7968f33f83ff2a48b06b725f8119a0dae4 /.vim/lua/plugins | |
| parent | 84c501be462e03b55401ca962e03ff56e1bb1ae5 (diff) | |
vim: misc stuff
Diffstat (limited to '.vim/lua/plugins')
| -rw-r--r-- | .vim/lua/plugins/_completion.lua | 2 | ||||
| -rw-r--r-- | .vim/lua/plugins/_goyo.lua | 15 | ||||
| -rw-r--r-- | .vim/lua/plugins/_lsp.lua | 2 |
3 files changed, 11 insertions, 8 deletions
diff --git a/.vim/lua/plugins/_completion.lua b/.vim/lua/plugins/_completion.lua index 504ab00..59773a2 100644 --- a/.vim/lua/plugins/_completion.lua +++ b/.vim/lua/plugins/_completion.lua @@ -16,7 +16,7 @@ g.completion_sorting = 'length' -- or: alphabet, none g.completion_auto_change_source = true g.completion_chain_complete_list = { - {complete_items = {'lsp', 'snippet', 'buffers', 'path', 'ts'}}, + {complete_items = {'lsp', 'snippet', 'path', 'buffers', 'ts'}}, -- {mode = '<c-p>'}, -- {mode = '<c-n>'}, {mode = 'file'}, diff --git a/.vim/lua/plugins/_goyo.lua b/.vim/lua/plugins/_goyo.lua index e18d2ba..538712d 100644 --- a/.vim/lua/plugins/_goyo.lua +++ b/.vim/lua/plugins/_goyo.lua @@ -1,9 +1,12 @@ vim.g.goyo_width = 120 vim.g.goyo_height = 90 vim.g.goyo_linenr = false -require('utils').augroup('goyo_hooks', { - {'User', 'GoyoEnter', 'set laststatus=0 scrolloff=999'}, - {'User', 'GoyoEnter', 'Limelight'}, - {'User', 'GoyoLeave', 'set laststatus=2 scrolloff=5'}, - {'User', 'GoyoLeave', 'Limelight!'}, -}) + +require('utils').augroup2 { + goyo_hooks = { + {'User', 'GoyoEnter', 'set laststatus=0 scrolloff=999'}, + {'User', 'GoyoEnter', 'Limelight'}, + {'User', 'GoyoLeave', 'set laststatus=2 scrolloff=5'}, + {'User', 'GoyoLeave', 'Limelight!'}, + } +} diff --git a/.vim/lua/plugins/_lsp.lua b/.vim/lua/plugins/_lsp.lua index e8ca981..bf1cc6d 100644 --- a/.vim/lua/plugins/_lsp.lua +++ b/.vim/lua/plugins/_lsp.lua @@ -22,7 +22,7 @@ local my_attach = function(client) nnoremap { '<leader>f', function() vim.lsp.buf.formatting() end } -- nnoremap { 'g0', function() vim.lsp.buf.document_symbol() end } - -- nnoremap { 'gr', function() vim.lsp.buf.references() end } + nnoremap { 'gR', function() vim.lsp.buf.references() end } nnoremap { 'gW', function() vim.lsp.buf.workspace_symbol() end } nnoremap { 'gD', function() vim.lsp.buf.declaration() end } nnoremap { 'gT', function() vim.lsp.buf.type_definition() end } |