From 1fd09179703521706a87b9754b890e6389aaf0e6 Mon Sep 17 00:00:00 2001 From: PowerUser64 Date: Wed, 27 Oct 2021 04:40:14 -0700 Subject: [PATCH] nvim: lsp_signature works batter now, and there's a new commenting plugin --- .config/nvim/lua/blake/lsp.lua | 4 ++-- .config/nvim/lua/blake/other.lua | 2 +- .config/nvim/lua/blake/plugins.lua | 17 ++++++++++------- 3 files changed, 13 insertions(+), 10 deletions(-) diff --git a/.config/nvim/lua/blake/lsp.lua b/.config/nvim/lua/blake/lsp.lua index cd41c61..894b0b5 100644 --- a/.config/nvim/lua/blake/lsp.lua +++ b/.config/nvim/lua/blake/lsp.lua @@ -2,10 +2,10 @@ local M = {} -- lsp_signature >>> M.signature = function() - require "lsp_signature".setup() cfg = { - Gse_lspsaga = true + toggle_key = '' } + require "lsp_signature".setup(cfg) end -- <<< -- lspinstall >>> diff --git a/.config/nvim/lua/blake/other.lua b/.config/nvim/lua/blake/other.lua index 0fc56cc..b480838 100644 --- a/.config/nvim/lua/blake/other.lua +++ b/.config/nvim/lua/blake/other.lua @@ -182,7 +182,7 @@ M.autosession = function() } require('auto-session').setup(opts) -- save some more things. notably options, resize, winpos, and terminal - vim.o.sessionoptions="blank,buffers,curdir,folds,help,options,tabpages,winsize,resize,winpos,terminal" + vim.o.sessionoptions="blank,buffers,curdir,folds,help,tabpages,resize,winpos,terminal" -- So I don't forget which one it is vim.cmd 'command! SessionSave SaveSession' vim.cmd 'command! SessionDelete DeleteSession' diff --git a/.config/nvim/lua/blake/plugins.lua b/.config/nvim/lua/blake/plugins.lua index f11c6c7..6f75367 100644 --- a/.config/nvim/lua/blake/plugins.lua +++ b/.config/nvim/lua/blake/plugins.lua @@ -162,20 +162,23 @@ return require('packer').startup(function() vim.api.nvim_set_keymap('n', '', 'UndotreeToggle', { noremap = true, silent = true, }) end } - use { -- Quote pairing - 'jiangmiao/auto-pairs' - } + -- use { -- Quote pairing + -- 'jiangmiao/auto-pairs' + -- } use { -- Alignment 'junegunn/vim-easy-align', } use { -- cheat.sh integration 'dbeniamine/cheat.sh-vim', } - use { -- tpope: Quote/parenthesis changing - 'tpope/vim-surround' + use { -- comments (gb and gc) + 'numToStr/Comment.nvim', + config = function() + require('Comment').setup() + end } - use { -- tpope: Comments - 'tpope/vim-commentary' + use { -- tpope: surround + 'tpope/vim-surround' } use { -- tpope: git integration 'tpope/vim-fugitive'