changeset 362:c2c870fb8095

Add nrpattern with config
author zegervdv <zegervdv@me.com>
date Mon, 15 Mar 2021 09:06:52 +0100
parents 337eb27fc66e
children db80c8ac727d
files dot_config/nvim/config.lua
diffstat 1 files changed, 26 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/dot_config/nvim/config.lua	Fri Mar 12 18:21:25 2021 +0100
+++ b/dot_config/nvim/config.lua	Mon Mar 15 09:06:52 2021 +0100
@@ -77,9 +77,22 @@
       branch = 'lua',
       config = function ()
         vim.g.indent_blankline_buftype_exclude = {'terminal', 'help', 'nofile'}
+        vim.g.indent_blankline_show_first_indent_level = false
       end
     }
 
+    -- Increment/decrement
+    use {
+      'zegervdv/nrpattern.nvim',
+      requires = 'tpope/vim-repeat',
+      config = function ()
+        local nrpattern = require"nrpattern"
+        local defaults = require"nrpattern.default"
+
+        nrpattern.setup(defaults)
+      end,
+    }
+
     -- Tmux
     function test_tmux()
       return os.getenv('TMUX') ~= nil
@@ -251,20 +264,23 @@
     use {'zegervdv/nvcode-color-schemes.vim'}
 
     -- Terminal
-    use {'akinsho/nvim-toggleterm.lua'}
+    use {
+      'akinsho/nvim-toggleterm.lua',
+      config = function()
+        require'toggleterm'.setup {
+          size = 20,
+          open_mapping = [[<F12>]],
+          shade_filetypes = {},
+          shade_terminals = true,
+          persist_size = true,
+          direction = 'horizontal',
+        }
+      end,
+    }
 
   end)
 end
 
-require'toggleterm'.setup {
-  size = 20,
-  open_mapping = [[<F12>]],
-  shade_filetypes = {},
-  shade_terminals = true,
-  persist_size = true,
-  direction = 'horizontal',
-}
-
 -- This came from https://github.com/tjdevries/config_manager/blob/master/xdg_config/nvim/lua/lsp_config.lua
 local mapper = function(mode, key, result, noremap)
   if noremap == nil then