Fix neovim treesitter indent colors and utiliez mini.nvim more rather than have more plugins
This commit is contained in:
parent
d426b9aa99
commit
c799544b12
5 changed files with 14 additions and 45 deletions
chezmoi/private_dot_config/nvim/lua/plugins
|
@ -1,9 +0,0 @@
|
|||
-- See current buffers at the top of the editor
|
||||
return {
|
||||
{
|
||||
"akinsho/bufferline.nvim",
|
||||
version = "v3.*",
|
||||
dependencies = "nvim-tree/nvim-web-devicons",
|
||||
opts = {},
|
||||
},
|
||||
}
|
|
@ -4,6 +4,7 @@ return {
|
|||
show_current_context = true,
|
||||
show_current_context_start = true,
|
||||
show_trailing_blankline_indent = false,
|
||||
char_highlight_list = {"NvimTreeIndentMarker"},
|
||||
char_highlight_list = {"Comment"},
|
||||
context_highlight_list = {"Special"},
|
||||
},
|
||||
}
|
||||
|
|
|
@ -3,40 +3,35 @@ return {
|
|||
"echasnovski/mini.nvim",
|
||||
config = function()
|
||||
local animate = require("mini.animate")
|
||||
local timing = animate.gen_timing.linear({ duration = duration, unit = "total" })
|
||||
animate.setup({
|
||||
cursor = {
|
||||
timing = animate.gen_timing.linear({ duration = 100, unit = "total" })
|
||||
timing = timing
|
||||
},
|
||||
scroll = {
|
||||
timing = animate.gen_timing.linear({ duration = 100, unit = "total" })
|
||||
timing = timing
|
||||
},
|
||||
resize = {
|
||||
timing = animate.gen_timing.linear({ duration = 100, unit = "total" })
|
||||
timing = timing
|
||||
},
|
||||
open = {
|
||||
timing = animate.gen_timing.linear({ duration = 100, unit = "total" })
|
||||
timing = timing
|
||||
},
|
||||
close = {
|
||||
timing = animate.gen_timing.linear({ duration = 100, unit = "total" })
|
||||
timing = timing
|
||||
},
|
||||
})
|
||||
require("mini.bufremove").setup()
|
||||
require("mini.comment").setup()
|
||||
require("mini.completion").setup()
|
||||
require("mini.cursorword").setup()
|
||||
require("mini.indentscope").setup({
|
||||
options = {
|
||||
border = "both",
|
||||
indent_at_cursor = true,
|
||||
try_as_border = true,
|
||||
},
|
||||
symbol = "│"
|
||||
})
|
||||
require("mini.pairs").setup()
|
||||
require("mini.tabline").setup()
|
||||
require("mini.starter").setup()
|
||||
require("mini.statusline").setup()
|
||||
require("mini.surround").setup()
|
||||
require("mini.trailspace").setup()
|
||||
|
||||
vim.opt.list = true
|
||||
vim.opt.listchars = "tab:│ "
|
||||
vim.api.nvim_command(":command Bd lua MiniBufremove.delete()")
|
||||
vim.api.nvim_command(":command FixWhitespace lua MiniTrailspace.trim()")
|
||||
end,
|
||||
|
|
|
@ -1,16 +0,0 @@
|
|||
-- Fancier statusline
|
||||
return {
|
||||
"nvim-lualine/lualine.nvim",
|
||||
config = function()
|
||||
local colorscheme = require("helpers.colorscheme")
|
||||
local lualine_theme = colorscheme == "default" and "auto" or colorscheme
|
||||
require("lualine").setup({
|
||||
options = {
|
||||
icons_enabled = true,
|
||||
theme = lualine_theme,
|
||||
component_separators = "|",
|
||||
section_separators = "",
|
||||
},
|
||||
})
|
||||
end,
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue