From 5bef12e5583e4ba2ff40ff297522b7668f0450cc Mon Sep 17 00:00:00 2001 From: Yorick Barbanneau Date: Sun, 24 Dec 2023 01:44:04 +0100 Subject: [PATCH] Update indent blankline plugin configuration --- home-manager/cli/neovim/default.nix | 10 +++++++++- home-manager/cli/neovim/files/options.lua | 10 +++++++++- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/home-manager/cli/neovim/default.nix b/home-manager/cli/neovim/default.nix index ab93cf2..c1eecbe 100644 --- a/home-manager/cli/neovim/default.nix +++ b/home-manager/cli/neovim/default.nix @@ -65,7 +65,15 @@ in type = "lua"; config = (builtins.readFile ./files/luasnip.lua); } - indent-blankline-nvim + { + plugin = indent-blankline-nvim; + type = "lua"; + config ='' + require("ibl").setup{ + indent = { char = "│"}, + } + ''; + } { plugin = nvim-lspconfig; type = "lua"; diff --git a/home-manager/cli/neovim/files/options.lua b/home-manager/cli/neovim/files/options.lua index 0fe083d..193fe24 100644 --- a/home-manager/cli/neovim/files/options.lua +++ b/home-manager/cli/neovim/files/options.lua @@ -15,8 +15,16 @@ vim.opt.hlsearch = true -- search: hightlight terms vim.opt.ignorecase = true vim.opt.incsearch = true vim.opt.laststatus = 1 + -- show special character -vim.opt.listchars = {tab = '→ ', trail = '␣', eol = '', extends = '…' } +vim.opt.listchars = { + tab = '→ ', + trail = '␣', + space = '·', + eol = '', + extends = '…', + precedes = "<" +} vim.opt.signcolumn = "yes" -- alway show sign column vim.opt.number = true