From e249ca56974a5b6aa7ad1f194decd6ae216befe2 Mon Sep 17 00:00:00 2001 From: Adam Date: Mon, 14 Mar 2022 13:14:39 +0100 Subject: nvim: minor config improvement --- .config/nvim/lua/plugins.lua | 3 +++ .config/nvim/lua/setup/indent-blankline.lua | 14 ++++++++++++-- .config/nvim/lua/setup/telescope.lua | 7 +++++++ 3 files changed, 22 insertions(+), 2 deletions(-) create mode 100644 .config/nvim/lua/setup/telescope.lua diff --git a/.config/nvim/lua/plugins.lua b/.config/nvim/lua/plugins.lua index b1054b3..008cb78 100644 --- a/.config/nvim/lua/plugins.lua +++ b/.config/nvim/lua/plugins.lua @@ -160,6 +160,9 @@ local plugins = { module = "telescope", cmd = "Telescope", wants = { "ripgrep", "telescope-fzf-native.nvim", "plenary.nvim" }, + config = function() + require "setup.telescope" + end }, } diff --git a/.config/nvim/lua/setup/indent-blankline.lua b/.config/nvim/lua/setup/indent-blankline.lua index 8e25798..4a3c1e9 100644 --- a/.config/nvim/lua/setup/indent-blankline.lua +++ b/.config/nvim/lua/setup/indent-blankline.lua @@ -3,6 +3,16 @@ vim.cmd('highlight IndentBlanklineChar guifg=#3b414c gui=nocombine') require("indent_blankline").setup { char = "┊", show_trailing_blankline_indent = false, - buftype_exclude = {'startify', 'help', 'terminal', 'packer'}, - filetype_exclude = {'startify', 'help', 'terminal', 'packer'}, + filetype_exclude = { + "help", + "terminal", + "alpha", + "packer", + "lspinfo", + "TelescopePrompt", + "TelescopeResults", + "lsp-installer", + "", + }, + buftype_exclude = { "terminal" }, } diff --git a/.config/nvim/lua/setup/telescope.lua b/.config/nvim/lua/setup/telescope.lua new file mode 100644 index 0000000..a9dfeb3 --- /dev/null +++ b/.config/nvim/lua/setup/telescope.lua @@ -0,0 +1,7 @@ +require("telescope").setup { + defaults = { + path_display = { + truncate = 3, + }, + }, +} -- cgit v1.2.3-70-g09d2