From 9fd0ab9b911c2c16a7d593b58165fa7aca37d60f Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Tue, 16 Nov 2021 12:03:12 +0100 Subject: [PATCH] nvim: Remove ctrlsf and thesaurus_query Removed the two plugins since I *never* used them in months. Improved startup slightly by conditionally loading some filetype and command plugins. --- nvim/.config/nvim/lua/maps.lua | 4 --- nvim/.config/nvim/lua/plugins.lua | 50 +++++++++++++++++++------------ 2 files changed, 31 insertions(+), 23 deletions(-) diff --git a/nvim/.config/nvim/lua/maps.lua b/nvim/.config/nvim/lua/maps.lua index e4f4e3e..3196360 100644 --- a/nvim/.config/nvim/lua/maps.lua +++ b/nvim/.config/nvim/lua/maps.lua @@ -175,10 +175,6 @@ vim.g.nv_fzf_binds = { map.n.nore['n'] = ':NV' map.n.nore['N'] = ':NV!' --- PLUGIN: CtrlSF --- (non-fuzzy) search in wiki with ctrlsf, in fullscreen window -map.n.nore['wf'] = ':call SearchNotes()' - -- Mostly dealing with Prose writing from here on out -- Format current Paragraph (esp useful in prose writing) map.n.nore.silent['q'] = 'gqap' diff --git a/nvim/.config/nvim/lua/plugins.lua b/nvim/.config/nvim/lua/plugins.lua index 96a50eb..dd7b449 100644 --- a/nvim/.config/nvim/lua/plugins.lua +++ b/nvim/.config/nvim/lua/plugins.lua @@ -34,16 +34,19 @@ require("packer").startup(function() use { 'lewis6991/gitsigns.nvim', -- show vcs changes on left-hand gutter requires = {'nvim-lua/plenary.nvim'}, + tag = 'release', config = function() require('gitsigns').setup() end, event = "BufRead" } use { 'norcalli/nvim-colorizer.lua', -- color hex, named colors in the correct preview scheme - config = function() require('colorizer').setup() end + config = function() require('colorizer').setup() end, + event = "BufRead" } use { 'mhartington/formatter.nvim', -- auto formatting on save - config = function() require('plug._format') end + config = function() require('plug._format') end, + event = "BufRead" } -- editing @@ -57,25 +60,36 @@ require("packer").startup(function() linear = {{"'", "'"}, {'"', '"'}, {'*', '*'}, {'`', '`'}} } require('surround').setup {} - end + end, + event = "BufRead" + } + use { + 'monaqa/dial.nvim', -- extend the ^a / ^x possibilities to dates, hex, alphabets, markdown headers + event = "BufRead" + } + use { + 'tommcdo/vim-exchange', -- adds exchange operator with cx. common use: cxiw . on 2 words to switch + event = "BufRead" } - use 'monaqa/dial.nvim' -- extend the ^a / ^x possibilities to dates, hex, alphabets, markdown headers - use 'tommcdo/vim-exchange' -- adds exchange operator with cx. common use: cxiw . on 2 words to switch use { 'windwp/nvim-autopairs', - config = function() require('plug._autopair') end + config = function() require('plug._autopair') end, + event = "BufRead" } -- Auto close brackets and '' - use 'junegunn/vim-easy-align' -- Align tables and other alignable things - use "tversteeg/registers.nvim" -- Show the contents of regiseters on pasting from '', @, + use { + 'junegunn/vim-easy-align', -- Align tables and other alignable things + event = "BufRead" + } + use { + 'tversteeg/registers.nvim', -- Show the contents of regiseters on pasting from '', @, + event = "BufRead" + } use { -- highlight where the cursor jumps to 'edluffy/specs.nvim', - config = function() require('specs').setup {} end + config = function() require('specs').setup {} end, + event = "BufRead" } - -- linting - -- use 'desmap/ale-sensible' - -- use 'w0rp/ale' -- asynchronous linting - might be superseded by lsp or coc.nvim at some point - -- colorschemes use 'norcalli/nvim-base16.lua' @@ -87,10 +101,9 @@ require("packer").startup(function() } -- writing - use 'vim-pandoc/vim-pandoc-syntax' - use 'vim-pandoc/vim-pandoc' + use {'vim-pandoc/vim-pandoc-syntax', ft = 'pandoc'} + use {'vim-pandoc/vim-pandoc', ft = 'pandoc'} use 'micarmst/vim-spellsync' -- personal dict improvements for git sync - use 'ron89/thesaurus_query.vim' -- find thesaurus backed synonyms for word under cursor use { -- provide distraction free writing 'Pocco81/TrueZen.nvim', config = function() @@ -104,12 +117,11 @@ require("packer").startup(function() }) end } - use 'junegunn/limelight.vim' -- provide even distraction free-er writing (lowlight paragraphs) - use 'dyng/ctrlsf.vim' -- search-and-edit of many wiki files at once + use {'junegunn/limelight.vim', event = 'BufRead'} -- provide even distraction free-er writing (lowlight paragraphs) use 'alok/notational-fzf-vim' -- quickly search through the wiki -- languages - use 'euclidianAce/BetterLua.vim' -- better syntax highlighting for lua + use {'euclidianAce/BetterLua.vim', ft = 'lua'} -- better syntax highlighting for lua -- -- nvim plugs