Fix neovim treesitter indent colors and utiliez mini.nvim more rather than have more plugins

This commit is contained in:
Tony Blyler 2023-06-28 23:03:36 -04:00
parent d426b9aa99
commit c799544b12
No known key found for this signature in database
5 changed files with 14 additions and 45 deletions

View file

@ -1,17 +1,15 @@
{ {
"bufferline.nvim": { "branch": "main", "commit": "243893ba9d5d1049dd451a25cab32ec7f8f67bcf" },
"fidget.nvim": { "branch": "main", "commit": "0ba1e16d07627532b6cae915cc992ecac249fb97" }, "fidget.nvim": { "branch": "main", "commit": "0ba1e16d07627532b6cae915cc992ecac249fb97" },
"gitsigns.nvim": { "branch": "main", "commit": "a36bc3360d584d39b4fb076d855c4180842d4444" }, "gitsigns.nvim": { "branch": "main", "commit": "a36bc3360d584d39b4fb076d855c4180842d4444" },
"gruvbox.nvim": { "branch": "main", "commit": "df149bccb19a02c5c2b9fa6ec0716f0c0487feb0" }, "gruvbox.nvim": { "branch": "main", "commit": "df149bccb19a02c5c2b9fa6ec0716f0c0487feb0" },
"hop.nvim": { "branch": "master", "commit": "03f0434869f1f38868618198b5f4f2ab6d39aef2" }, "hop.nvim": { "branch": "master", "commit": "03f0434869f1f38868618198b5f4f2ab6d39aef2" },
"indent-blankline.nvim": { "branch": "master", "commit": "7075d7861f7a6bbf0de0298c83f8a13195e6ec01" }, "indent-blankline.nvim": { "branch": "master", "commit": "7075d7861f7a6bbf0de0298c83f8a13195e6ec01" },
"lazy.nvim": { "branch": "main", "commit": "4c8b625bc873ca76b76eee0c28c98f1f7148f17f" }, "lazy.nvim": { "branch": "main", "commit": "4c8b625bc873ca76b76eee0c28c98f1f7148f17f" },
"lualine.nvim": { "branch": "master", "commit": "05d78e9fd0cdfb4545974a5aa14b1be95a86e9c9" },
"mason-lspconfig.nvim": { "branch": "main", "commit": "4c3baba22189aa2a08d32bb8d08b32c7e22a2e84" }, "mason-lspconfig.nvim": { "branch": "main", "commit": "4c3baba22189aa2a08d32bb8d08b32c7e22a2e84" },
"mason.nvim": { "branch": "main", "commit": "8adaf0bc58ddadd70dad563f949042fb1cb0211c" }, "mason.nvim": { "branch": "main", "commit": "b68d3be4b664671002221d43c82e74a0f1006b26" },
"mini.nvim": { "branch": "main", "commit": "a4241b6f51393d5e4d91a12d94e386bae287dae5" }, "mini.nvim": { "branch": "main", "commit": "a4241b6f51393d5e4d91a12d94e386bae287dae5" },
"neodev.nvim": { "branch": "main", "commit": "a2b1d8fb9fa4daa35d3fd9123bccccccbd4a3520" }, "neodev.nvim": { "branch": "main", "commit": "a2b1d8fb9fa4daa35d3fd9123bccccccbd4a3520" },
"null-ls.nvim": { "branch": "main", "commit": "bbaf5a96913aa92281f154b08732be2f57021c45" }, "null-ls.nvim": { "branch": "main", "commit": "b919452c84e461c21a79185bef90c96e1cfecff9" },
"nvim-lsp-basics": { "branch": "main", "commit": "632714bd3ab355eb6e725b5a78cd8730f12d14d2" }, "nvim-lsp-basics": { "branch": "main", "commit": "632714bd3ab355eb6e725b5a78cd8730f12d14d2" },
"nvim-lspconfig": { "branch": "master", "commit": "b6b34b9acf84949f0ac1c00747765e62b81fb38d" }, "nvim-lspconfig": { "branch": "master", "commit": "b6b34b9acf84949f0ac1c00747765e62b81fb38d" },
"nvim-treesitter": { "branch": "master", "commit": "e7f2b1276b7aa68099acc8169ce51f7e389b1772" }, "nvim-treesitter": { "branch": "master", "commit": "e7f2b1276b7aa68099acc8169ce51f7e389b1772" },

View file

@ -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 = {},
},
}

View file

@ -4,6 +4,7 @@ return {
show_current_context = true, show_current_context = true,
show_current_context_start = true, show_current_context_start = true,
show_trailing_blankline_indent = false, show_trailing_blankline_indent = false,
char_highlight_list = {"NvimTreeIndentMarker"}, char_highlight_list = {"Comment"},
context_highlight_list = {"Special"},
}, },
} }

View file

@ -3,40 +3,35 @@ return {
"echasnovski/mini.nvim", "echasnovski/mini.nvim",
config = function() config = function()
local animate = require("mini.animate") local animate = require("mini.animate")
local timing = animate.gen_timing.linear({ duration = duration, unit = "total" })
animate.setup({ animate.setup({
cursor = { cursor = {
timing = animate.gen_timing.linear({ duration = 100, unit = "total" }) timing = timing
}, },
scroll = { scroll = {
timing = animate.gen_timing.linear({ duration = 100, unit = "total" }) timing = timing
}, },
resize = { resize = {
timing = animate.gen_timing.linear({ duration = 100, unit = "total" }) timing = timing
}, },
open = { open = {
timing = animate.gen_timing.linear({ duration = 100, unit = "total" }) timing = timing
}, },
close = { close = {
timing = animate.gen_timing.linear({ duration = 100, unit = "total" }) timing = timing
}, },
}) })
require("mini.bufremove").setup() require("mini.bufremove").setup()
require("mini.comment").setup() require("mini.comment").setup()
require("mini.completion").setup() require("mini.completion").setup()
require("mini.cursorword").setup() require("mini.cursorword").setup()
require("mini.indentscope").setup({ require("mini.pairs").setup()
options = { require("mini.tabline").setup()
border = "both", require("mini.starter").setup()
indent_at_cursor = true, require("mini.statusline").setup()
try_as_border = true,
},
symbol = ""
})
require("mini.surround").setup() require("mini.surround").setup()
require("mini.trailspace").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 Bd lua MiniBufremove.delete()")
vim.api.nvim_command(":command FixWhitespace lua MiniTrailspace.trim()") vim.api.nvim_command(":command FixWhitespace lua MiniTrailspace.trim()")
end, end,

View file

@ -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,
}