comparison dot_config/nvim/config.lua @ 362:c2c870fb8095

Add nrpattern with config
author zegervdv <zegervdv@me.com>
date Mon, 15 Mar 2021 09:06:52 +0100
parents 337eb27fc66e
children db80c8ac727d
comparison
equal deleted inserted replaced
361:337eb27fc66e 362:c2c870fb8095
75 use { 75 use {
76 'lukas-reineke/indent-blankline.nvim', 76 'lukas-reineke/indent-blankline.nvim',
77 branch = 'lua', 77 branch = 'lua',
78 config = function () 78 config = function ()
79 vim.g.indent_blankline_buftype_exclude = {'terminal', 'help', 'nofile'} 79 vim.g.indent_blankline_buftype_exclude = {'terminal', 'help', 'nofile'}
80 vim.g.indent_blankline_show_first_indent_level = false
80 end 81 end
82 }
83
84 -- Increment/decrement
85 use {
86 'zegervdv/nrpattern.nvim',
87 requires = 'tpope/vim-repeat',
88 config = function ()
89 local nrpattern = require"nrpattern"
90 local defaults = require"nrpattern.default"
91
92 nrpattern.setup(defaults)
93 end,
81 } 94 }
82 95
83 -- Tmux 96 -- Tmux
84 function test_tmux() 97 function test_tmux()
85 return os.getenv('TMUX') ~= nil 98 return os.getenv('TMUX') ~= nil
249 262
250 -- Colorscheme 263 -- Colorscheme
251 use {'zegervdv/nvcode-color-schemes.vim'} 264 use {'zegervdv/nvcode-color-schemes.vim'}
252 265
253 -- Terminal 266 -- Terminal
254 use {'akinsho/nvim-toggleterm.lua'} 267 use {
268 'akinsho/nvim-toggleterm.lua',
269 config = function()
270 require'toggleterm'.setup {
271 size = 20,
272 open_mapping = [[<F12>]],
273 shade_filetypes = {},
274 shade_terminals = true,
275 persist_size = true,
276 direction = 'horizontal',
277 }
278 end,
279 }
255 280
256 end) 281 end)
257 end 282 end
258
259 require'toggleterm'.setup {
260 size = 20,
261 open_mapping = [[<F12>]],
262 shade_filetypes = {},
263 shade_terminals = true,
264 persist_size = true,
265 direction = 'horizontal',
266 }
267 283
268 -- This came from https://github.com/tjdevries/config_manager/blob/master/xdg_config/nvim/lua/lsp_config.lua 284 -- This came from https://github.com/tjdevries/config_manager/blob/master/xdg_config/nvim/lua/lsp_config.lua
269 local mapper = function(mode, key, result, noremap) 285 local mapper = function(mode, key, result, noremap)
270 if noremap == nil then 286 if noremap == nil then
271 noremap = true 287 noremap = true