mirror of
https://github.com/CompeyDev/my-nvim-setup.git
synced 2024-12-13 21:40:37 +00:00
lazy load blankline
This commit is contained in:
parent
b42f4778f9
commit
4c96c28c2d
2 changed files with 16 additions and 14 deletions
12
init.lua
12
init.lua
|
@ -25,19 +25,7 @@ base16(base16.themes["onedark"], true)
|
|||
|
||||
require "highlights"
|
||||
|
||||
-- blankline
|
||||
|
||||
g.indentLine_enabled = 1
|
||||
g.indent_blankline_char = "▏"
|
||||
|
||||
g.indent_blankline_filetype_exclude = {"help", "terminal", "dashboard"}
|
||||
g.indent_blankline_buftype_exclude = {"terminal"}
|
||||
|
||||
g.indent_blankline_show_trailing_blankline_indent = false
|
||||
g.indent_blankline_show_first_indent_level = false
|
||||
|
||||
require "mappings"
|
||||
|
||||
require "telescope-nvim"
|
||||
require "file-icons"
|
||||
require "gitsigns-nvim"
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
local packer = require("packer")
|
||||
local use = packer.use
|
||||
|
||||
-- using { } for using different branch , loading plugin with certain commands etc
|
||||
return packer.startup(
|
||||
function()
|
||||
use "wbthomason/packer.nvim"
|
||||
|
@ -108,7 +107,22 @@ return packer.startup(
|
|||
use "karb94/neoscroll.nvim"
|
||||
use "kdav5758/TrueZen.nvim"
|
||||
use "folke/which-key.nvim"
|
||||
use {"lukas-reineke/indent-blankline.nvim", branch = "lua"}
|
||||
|
||||
use {
|
||||
"lukas-reineke/indent-blankline.nvim",
|
||||
branch = "lua",
|
||||
event = "BufRead",
|
||||
setup = function()
|
||||
vim.g.indentLine_enabled = 1
|
||||
vim.g.indent_blankline_char = "▏"
|
||||
|
||||
vim.g.indent_blankline_filetype_exclude = {"help", "terminal", "dashboard"}
|
||||
vim.g.indent_blankline_buftype_exclude = {"terminal"}
|
||||
|
||||
vim.g.indent_blankline_show_trailing_blankline_indent = false
|
||||
vim.g.indent_blankline_show_first_indent_level = false
|
||||
end
|
||||
}
|
||||
end,
|
||||
{
|
||||
display = {
|
||||
|
|
Loading…
Reference in a new issue