git gutter + indentation
This commit is contained in:
parent
63ffaef82e
commit
1f81bc57df
60
lua/configs/indent-blankline.lua
Normal file
60
lua/configs/indent-blankline.lua
Normal file
@ -0,0 +1,60 @@
|
|||||||
|
local M = {}
|
||||||
|
|
||||||
|
function M.config()
|
||||||
|
local status_ok, indent_blankline = pcall(require, "indent_blankline")
|
||||||
|
if not status_ok then
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
|
vim.g.indentLine_enabled = 1
|
||||||
|
vim.g.indent_blankline_show_trailing_blankline_indent = false
|
||||||
|
vim.g.indent_blankline_show_first_indent_level = true
|
||||||
|
vim.g.indent_blankline_use_treesitter = true
|
||||||
|
vim.g.indent_blankline_show_current_context = true
|
||||||
|
vim.g.indent_blankline_char = "▏"
|
||||||
|
vim.g.indent_blankline_buftype_exclude = {
|
||||||
|
"nofile",
|
||||||
|
"terminal",
|
||||||
|
"lsp-installer",
|
||||||
|
"lspinfo",
|
||||||
|
}
|
||||||
|
vim.g.indent_blankline_filetype_exclude = {
|
||||||
|
"help",
|
||||||
|
"startify",
|
||||||
|
"dashboard",
|
||||||
|
"packer",
|
||||||
|
"neogitstatus",
|
||||||
|
"NvimTree",
|
||||||
|
"Trouble",
|
||||||
|
}
|
||||||
|
vim.g.indent_blankline_context_patterns = {
|
||||||
|
"class",
|
||||||
|
"return",
|
||||||
|
"function",
|
||||||
|
"method",
|
||||||
|
"^if",
|
||||||
|
"^while",
|
||||||
|
"jsx_element",
|
||||||
|
"^for",
|
||||||
|
"^object",
|
||||||
|
"^table",
|
||||||
|
"block",
|
||||||
|
"arguments",
|
||||||
|
"if_statement",
|
||||||
|
"else_clause",
|
||||||
|
"jsx_element",
|
||||||
|
"jsx_self_closing_element",
|
||||||
|
"try_statement",
|
||||||
|
"catch_clause",
|
||||||
|
"import_statement",
|
||||||
|
"operation_type",
|
||||||
|
}
|
||||||
|
|
||||||
|
indent_blankline.setup {
|
||||||
|
show_current_context = true,
|
||||||
|
show_current_context_start = false,
|
||||||
|
}
|
||||||
|
end
|
||||||
|
|
||||||
|
return M
|
||||||
|
|
@ -58,11 +58,10 @@ packer.startup {
|
|||||||
}
|
}
|
||||||
|
|
||||||
-- Git marks
|
-- Git marks
|
||||||
|
use { 'lewis6991/gitsigns.nvim', config = function() require'configs.gitsigns'.config() end }
|
||||||
|
|
||||||
use {
|
-- Show indentation
|
||||||
'lewis6991/gitsigns.nvim',
|
use { 'lukas-reineke/indent-blankline.nvim', config = function() require'configs.indent-blankline'.config() end }
|
||||||
config = function() require'configs.gitsigns'.config() end
|
|
||||||
}
|
|
||||||
|
|
||||||
-- Telescope
|
-- Telescope
|
||||||
|
|
||||||
|
14
todo.txt
14
todo.txt
@ -16,12 +16,12 @@
|
|||||||
[x] vim-bbye
|
[x] vim-bbye
|
||||||
|
|
||||||
[ ] Language Processing
|
[ ] Language Processing
|
||||||
[ ] Treesitter
|
[x] Treesitter
|
||||||
[ ] nvim-ts-autotag
|
[x] nvim-ts-autotag
|
||||||
[ ] indent-blankline.nvim
|
[ ] indent-blankline.nvim
|
||||||
[ ] comment
|
[x] comment
|
||||||
[ ] norcalli/nvim-colorizer.lua
|
[x] norcalli/nvim-colorizer.lua
|
||||||
[ ] nvim-ts-context-commentstring
|
[x] nvim-ts-context-commentstring
|
||||||
[ ] nvim-autopairs
|
[ ] nvim-autopairs
|
||||||
[ ] nvim-lsp-installer
|
[ ] nvim-lsp-installer
|
||||||
[ ] Native LSP
|
[ ] Native LSP
|
||||||
@ -34,8 +34,8 @@
|
|||||||
[ ] LuaSnip
|
[ ] LuaSnip
|
||||||
[ ] nvim-cmp
|
[ ] nvim-cmp
|
||||||
|
|
||||||
[ ] Git Integration
|
[x] Git Integration
|
||||||
[ ] Gitsigns
|
[x] Gitsigns
|
||||||
|
|
||||||
[ ] Find Files
|
[ ] Find Files
|
||||||
[ ] Telescope
|
[ ] Telescope
|
||||||
|
Loading…
Reference in New Issue
Block a user