chore(astronvim): Updated configurations

- Comment line changes
- Open trouble automagically
- Do not hide gitignored files from tree
- Tweaked nyancat dashboard header
This commit is contained in:
2023-06-08 14:31:16 +03:00
parent 2b06642e4b
commit 8f8851d08f
3 changed files with 29 additions and 23 deletions

View File

@@ -1,5 +1,7 @@
return { -- Add the community repository of plugin specifications return {
"AstroNvim/astrocommunity", -- example of imporing a plugin, comment out to use it or add your own -- Add the community repository of plugin specifications
"AstroNvim/astrocommunity",
-- example of imporing a plugin, comment out to use it or add your own.
-- available plugins can be found at -- available plugins can be found at
-- https://github.com/AstroNvim/astrocommunity -- https://github.com/AstroNvim/astrocommunity
{ {
@@ -27,7 +29,7 @@ return { -- Add the community repository of plugin specific
{ {
"folke/trouble.nvim", "folke/trouble.nvim",
opts = { opts = {
auto_open = false, auto_open = true,
position = "right" position = "right"
} }
}, },

View File

@@ -5,20 +5,18 @@ return {
opts = function(_, opts) opts = function(_, opts)
-- customize the dashboard header -- customize the dashboard header
opts.section.header.val = { opts.section.header.val = {
"░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░", " ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ",
"░░░░░░░░░░▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄░░░░░░░░░", " ▄▀░░░░░░░░░░░░░░░░░░░▀▄ ",
"░░░░░░░░▄▀░░░░░░░░░░░░▄░░░░░░░▀▄░░░░░░░", " █░░▄░░░░▄░░░░░░░░░░░░░░",
"░░░░░░░░█░░░░░░▄░░░░░░░░░░░░░█░░░░░░░", " █░░░░░░░░░░░░▄█▄▄░░░░░█ ▄▄▄ ",
"░░░░░░░░█░░░░░░░░░░░░▄█▄▄░░▄░░░█░▄▄▄░░░", "▄▄▄▄▄ █░░░░░░░░░░▀█░░▄░░░░░█▀▀░██ ",
"░▄▄▄▄▄░░█░░░░░░░░░░▀█░░▀▄░░░░░█▀▀░██░░", "██▄▀██▄█░░░░░░░░░░██░░░░▀▀▀▀▀░░░░██ ",
"██▄▀██▄█░░░░░░░░░██░░░░▀▀▀▀▀░░░░██░░", "██▄▀██░░░░░░░░░██░░░░░░░░░░░░░██",
"░░▀██▄▀██░░░░░░░░▀░██░░░░░░░░░░░░░▀██", " ▀████░░░░░░░░██░░░▄█░░░░▄░▄█░░██",
"░░░░▀████░▀░░░░▄░░░██░░░▄█░░░░▄░▄░░██", " ▀█░░░░▄░░░░░██░░░░░░░▄░░░██",
"░░░░░░░▀█░░░░▄░░░░░██░░░░▄░░░▄░░▄░░░██░", " ▄█▄░░░░░░░░░░░▀▄░░▀▀▀▀▀▀▀▀░░▄▀ ",
"░░░░░░░▄█▄░░░░░░░░░░░▀▄░░▀▀▀▀▀▀▀▀░░▄▀░░", " █▀▀█████████▀▀▀▀████████████▀ ",
"░░░░░░█▀▀█████████▀▀▀▀████████████▀░░░░", " ████▀ ███▀ ▀███ ▀██▀ ",
"░░░░░░████▀░░███▀░░░░░░▀███░░▀██▀░░░░░░",
"░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░"
} }
return opts return opts
end, end,
@@ -47,7 +45,7 @@ return {
visible = false, visible = false,
show_hidden_count = true, show_hidden_count = true,
hide_dotfiles = false, hide_dotfiles = false,
hide_gitignored = true, hide_gitignored = false,
hide_by_name = { hide_by_name = {
}, },
never_show = { never_show = {
@@ -99,9 +97,12 @@ return {
require "plugins.configs.which-key" (plugin, opts) require "plugins.configs.which-key" (plugin, opts)
-- Add bindings which show up as group name -- Add bindings which show up as group name
local wk = require "which-key" local wk = require "which-key"
wk.register({ wk.register(
b = { name = "Buffer" }, {
}, { mode = "n", prefix = "<leader>" }) b = { name = "Buffer" },
},
{ mode = "n", prefix = "<leader>" }
)
end, end,
}, },
} }

View File

@@ -1,5 +1,6 @@
-- customize mason plugins -- customize mason plugins
return { -- use mason-lspconfig to configure LSP installations return {
-- use mason-lspconfig to configure LSP installations
{ {
"williamboman/mason-lspconfig.nvim", "williamboman/mason-lspconfig.nvim",
-- overrides `require("mason-lspconfig").setup(...)` -- overrides `require("mason-lspconfig").setup(...)`
@@ -8,7 +9,9 @@ return { -- use mason-lspconfig to configure LSP installations
"diagnosticls", "diagnosticls",
}, },
}, },
}, -- use mason-null-ls to configure Formatters/Linter installation for null-ls sources },
-- use mason-null-ls to configure Formatters/Linter
-- installation for null-ls sources
{ {
"jay-babu/mason-null-ls.nvim", "jay-babu/mason-null-ls.nvim",
-- overrides `require("mason-null-ls").setup(...)` -- overrides `require("mason-null-ls").setup(...)`