From fb34ca6456bc407bfad26ceb3c47e054d27aed7d Mon Sep 17 00:00:00 2001 From: Adam <56338480+adastx@users.noreply.github.com> Date: Thu, 14 Oct 2021 20:10:30 +0200 Subject: Vim added vim-repeat, binding update, switched back to indent-blankline --- .config/nvim/lua/binds.lua | 4 ++-- .config/nvim/lua/opts.lua | 8 ++++++-- .config/nvim/lua/plugins.lua | 3 ++- 3 files changed, 10 insertions(+), 5 deletions(-) (limited to '.config') diff --git a/.config/nvim/lua/binds.lua b/.config/nvim/lua/binds.lua index a1f3f10..40d9a83 100644 --- a/.config/nvim/lua/binds.lua +++ b/.config/nvim/lua/binds.lua @@ -37,8 +37,8 @@ map('n', 'gd', 'Telescope lsp_definitions', opts) map('n', 'gD', 'Telescope lsp_declarations', opts) map('n', 'gr', 'Telescope lsp_references', opts) map('n', 'gi', 'Telescope lsp_implementations', opts) -map('n', 'K', 'lua vim.lsp.buf.hover()', opts) -map('n', '', 'lua vim.lsp.buf.signature_help()', opts) +map('n', 'K', 'lua vim.lsp.buf.hover()', opts) +map('n', '', 'lua vim.lsp.buf.signature_help()', opts) map('n', 'rn', 'lua vim.lsp.buf.rename()', opts) map('n', 'xd', 'Telescope lsp_document_diagnostics', opts) map('n', 'xD', 'Telescope lsp_workspace_diagnostics', opts) diff --git a/.config/nvim/lua/opts.lua b/.config/nvim/lua/opts.lua index 8095e24..9d3caf2 100644 --- a/.config/nvim/lua/opts.lua +++ b/.config/nvim/lua/opts.lua @@ -130,8 +130,12 @@ require('kommentary.config').configure_language("default", { }) vim.o.tabline = '%!v:lua.require\'luatab\'.tabline()' -vim.g.indentLine_bufNameExclude = {'startify', 'NvimTree', 'help', 'toggleterm', 'terminal'} -vim.g.indentLine_bufTypeExclude = {'startify', 'NvimTree', 'help', 'toggleterm', 'terminal'} +require("indent_blankline").setup { + char = "¦", + show_trailing_blankline_indent = false, + buftype_exclude = {"startify", "NvimTree", "help", "toggleterm", "terminal"}, + filetype_exclude = {"startify", "NvimTree", "help", "toggleterm", "terminal"}, +} vim.cmd [[ let g:ascii = [ diff --git a/.config/nvim/lua/plugins.lua b/.config/nvim/lua/plugins.lua index 5ec796c..ad31585 100644 --- a/.config/nvim/lua/plugins.lua +++ b/.config/nvim/lua/plugins.lua @@ -5,6 +5,7 @@ require('packer').startup(function() use 'tomasiser/vim-code-dark' use 'tpope/vim-fugitive' use 'tpope/vim-surround' + use 'tpope/vim-repeat' use 'ThePrimeagen/vim-be-good' use 'neovim/nvim-lspconfig' use 'hrsh7th/nvim-cmp' @@ -17,7 +18,7 @@ require('packer').startup(function() use 'mhinz/vim-startify' use "akinsho/toggleterm.nvim" use "ray-x/lsp_signature.nvim" - use "Yggdroot/indentLine" + use "lukas-reineke/indent-blankline.nvim" use { 'nvim-telescope/telescope.nvim', -- cgit v1.2.3-70-g09d2