# HG changeset patch # User zegervdv # Date 1615795612 -3600 # Node ID c2c870fb809568d44943b86099f8de8da5b65dab # Parent 337eb27fc66e94d6cf12df77f68dd66cd7fa125d Add nrpattern with config diff -r 337eb27fc66e -r c2c870fb8095 dot_config/nvim/config.lua --- 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 = [[]], + shade_filetypes = {}, + shade_terminals = true, + persist_size = true, + direction = 'horizontal', + } + end, + } end) end -require'toggleterm'.setup { - size = 20, - open_mapping = [[]], - 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