rm indenline and use blankline!

This commit is contained in:
siduck76 2021-03-26 10:21:32 +05:30
parent 9b9718f46b
commit b05103da4d
3 changed files with 26 additions and 12 deletions

View file

@ -1,4 +1,4 @@
-- load plugins -- load all plugins
require("pluginsList.lua") require("pluginsList.lua")
require("web-devicons.lua") require("web-devicons.lua")
@ -8,27 +8,37 @@ require("bufferline.lua")
require("statusline.lua") require("statusline.lua")
require("telescope-nvim.lua") require("telescope-nvim.lua")
require("gitsigns.lua")
require "colorizer".setup()
-- lsp -- lsp
require("nvim-lspconfig.lua") require("nvim-lspconfig.lua")
require("nvim-compe.lua") require("nvim-compe.lua")
require("gitsigns.lua")
require "colorizer".setup()
local cmd = vim.cmd local cmd = vim.cmd
local g = vim.g local g = vim.g
local indent = 2
g.mapleader = " "
g.auto_save = 1
-- colorscheme
cmd "colorscheme base16-onedark" cmd "colorscheme base16-onedark"
cmd "syntax enable" cmd "syntax enable"
cmd "syntax on" cmd "syntax on"
g.auto_save = 1 -- blankline
g.indentLine_enabled = 1
g.indentLine_char_list = {""}
g.mapleader = " " local indent = 2
g.indentLine_enabled = 1
g.indent_blankline_char = ""
cmd("hi IndentBlanklineChar guifg=#373b43")
g.indent_blankline_filetype_exclude = {"help", "terminal"}
g.indent_blankline_show_trailing_blankline_indent = false
g.indent_blankline_show_first_indent_level = false
require("treesitter.lua") require("treesitter.lua")
require("mappings.lua") require("mappings.lua")
@ -56,13 +66,13 @@ cmd("hi NvimTreeIndentMarker guifg=#545862")
cmd("hi Normal guibg=NONE ctermbg=NONE") cmd("hi Normal guibg=NONE ctermbg=NONE")
require("nvim-autopairs").setup() require("nvim-autopairs").setup()
require("lspkind").init( require("lspkind").init(
{ {
File = "" File = ""
} }
) )
-- nvimTree bg color
cmd("hi CustomExplorerBg guibg=#242830") cmd("hi CustomExplorerBg guibg=#242830")
vim.api.nvim_exec( vim.api.nvim_exec(

View file

@ -14,7 +14,6 @@ return require("packer").startup(
use {"nvim-treesitter/nvim-treesitter"} use {"nvim-treesitter/nvim-treesitter"}
use {"chriskempson/base16-vim"} use {"chriskempson/base16-vim"}
use {"norcalli/nvim-colorizer.lua"} use {"norcalli/nvim-colorizer.lua"}
use { 'Yggdroot/indentLine'}
use {"ryanoasis/vim-devicons"} use {"ryanoasis/vim-devicons"}
use {"sbdchd/neoformat"} use {"sbdchd/neoformat"}
use {"neovim/nvim-lspconfig"} use {"neovim/nvim-lspconfig"}
@ -26,5 +25,6 @@ return require("packer").startup(
use {"nvim-telescope/telescope.nvim"} use {"nvim-telescope/telescope.nvim"}
use {"nvim-telescope/telescope-media-files.nvim"} use {"nvim-telescope/telescope-media-files.nvim"}
use {"nvim-lua/popup.nvim"} use {"nvim-lua/popup.nvim"}
use {"lukas-reineke/indent-blankline.nvim", branch = 'lua'}
end end
) )

View file

@ -44,6 +44,10 @@ _G.packer_plugins = {
loaded = true, loaded = true,
path = "/home/sid/.local/share/nvim/site/pack/packer/start/gitsigns.nvim" path = "/home/sid/.local/share/nvim/site/pack/packer/start/gitsigns.nvim"
}, },
["indent-blankline.nvim"] = {
loaded = true,
path = "/home/sid/.local/share/nvim/site/pack/packer/start/indent-blankline.nvim"
},
indentLine = { indentLine = {
loaded = true, loaded = true,
path = "/home/sid/.local/share/nvim/site/pack/packer/start/indentLine" path = "/home/sid/.local/share/nvim/site/pack/packer/start/indentLine"