From 314bbf298e349c6da62f2d2226c8ac313425af5f Mon Sep 17 00:00:00 2001 From: Ayush Mukherjee Date: Mon, 18 Sep 2023 11:24:19 +0530 Subject: [PATCH] nvim: add indent-blankline plugin --- .bashrc | 3 +++ nvim/init.lua | 13 +++++++++++++ 2 files changed, 16 insertions(+) diff --git a/.bashrc b/.bashrc index 6b50664..9738ce9 100644 --- a/.bashrc +++ b/.bashrc @@ -88,3 +88,6 @@ export CHROME_EXECUTABLE=brave # pnpm export PNPM_HOME="/home/ayush/.local/share/pnpm" export PATH="$PNPM_HOME:$PATH" + +# nvm +source /usr/share/nvm/init-nvm.sh diff --git a/nvim/init.lua b/nvim/init.lua index 78a37f4..a3eaaec 100644 --- a/nvim/init.lua +++ b/nvim/init.lua @@ -47,6 +47,9 @@ require('packer').startup(function() use 'saadparwaiz1/cmp_luasnip' use "hrsh7th/cmp-nvim-lua" + -- indent lines + use "lukas-reineke/indent-blankline.nvim" + end) require("user.basics") @@ -95,6 +98,16 @@ configs.setup({ indent = { enable = true, disable = { "yaml" } } }) +-- indent blankline plugin +vim.opt.list = true +vim.opt.listchars:append "space:⋅" +vim.opt.listchars:append "eol:↴" +require("indent_blankline").setup { + show_end_of_line = true, + show_current_context = true, + show_current_context_start = true, +} + nmap("", "TablineTabNew") nmap("", "TablineBufferNext") nmap("", "TablineBufferPrevious")