astro-nvim-v3 - ft: fix some bug and add border
This commit is contained in:
@@ -11,15 +11,15 @@ return {
|
||||
-- Configure core features of AstroNvim
|
||||
features = {
|
||||
large_buf = { size = 1024 * 500, lines = 10000 }, -- set global limits for large files for disabling features like treesitter
|
||||
autopairs = true, -- enable autopairs at start
|
||||
autopairs = false, -- enable autopairs at start
|
||||
cmp = true, -- enable completion at start
|
||||
diagnostics_mode = 3, -- diagnostic mode on start (0 = off, 1 = no signs/virtual text, 2 = no virtual text, 3 = on)
|
||||
highlighturl = true, -- highlight URLs at start
|
||||
notifications = false, -- enable notifications at start
|
||||
highlighturl = false, -- highlight URLs at start
|
||||
notifications = true, -- enable notifications at start
|
||||
},
|
||||
-- Diagnostics configuration (for vim.diagnostics.config({...})) when diagnostics are on
|
||||
diagnostics = {
|
||||
virtual_text = true,
|
||||
-- virtual_text = true,
|
||||
underline = true,
|
||||
update_in_insert = false,
|
||||
},
|
||||
|
||||
@@ -37,14 +37,14 @@ M.statusline = {
|
||||
},
|
||||
},
|
||||
-- Add a icon to represent diagnostic and git git diff
|
||||
status.component.builder {
|
||||
provider = function() return get_icon "Diagnostic" .. "/" .. get_icon "Github" end,
|
||||
hl = { fg = "black" },
|
||||
surround = {
|
||||
separator = { " ", "" },
|
||||
color = "#81ab9e",
|
||||
},
|
||||
},
|
||||
-- status.component.builder {
|
||||
-- provider = function() return get_icon "Diagnostic" .. "/" .. get_icon "Github" end,
|
||||
-- hl = { fg = "black" },
|
||||
-- surround = {
|
||||
-- separator = { " ", "" },
|
||||
-- color = "#81ab9e",
|
||||
-- },
|
||||
-- },
|
||||
status.component.diagnostics {
|
||||
surround = {
|
||||
separator = "none",
|
||||
|
||||
@@ -4,8 +4,7 @@ return {
|
||||
transparent = true,
|
||||
italic_comments = true,
|
||||
hide_fillchars = true,
|
||||
borderless_telescope = true,
|
||||
terminal_colors = true,
|
||||
|
||||
borderless_telescope = false,
|
||||
terminal_colors = false,
|
||||
},
|
||||
}
|
||||
|
||||
@@ -19,8 +19,7 @@ local ignore_buftypes = {
|
||||
"quickfix",
|
||||
"terminal",
|
||||
}
|
||||
local char = "||"
|
||||
|
||||
local char = ""
|
||||
|
||||
return {
|
||||
"echasnovski/mini.indentscope",
|
||||
@@ -32,7 +31,11 @@ return {
|
||||
}
|
||||
end,
|
||||
dependencies = {
|
||||
{ "lukas-reineke/indent-blankline.nvim", optional = true, opts = { scope = { enabled = false } } },
|
||||
{
|
||||
"lukas-reineke/indent-blankline.nvim",
|
||||
optional = true,
|
||||
opts = { scope = { enabled = false } },
|
||||
},
|
||||
{
|
||||
"AstroNvim/astrocore",
|
||||
opts = {
|
||||
|
||||
40
lua/plugins/mason-setup.lua
Normal file
40
lua/plugins/mason-setup.lua
Normal file
@@ -0,0 +1,40 @@
|
||||
return {
|
||||
"williamboman/mason.nvim",
|
||||
opts = function()
|
||||
require("mason").setup {
|
||||
ui = {
|
||||
---@since 1.0.0
|
||||
-- Whether to automatically check for new versions when opening the :Mason window.
|
||||
check_outdated_packages_on_open = true,
|
||||
|
||||
---@since 1.0.0
|
||||
-- The border to use for the UI window. Accepts same border values as |nvim_open_win()|.
|
||||
border = "single",
|
||||
|
||||
---@since 1.0.0
|
||||
-- Width of the window. Accepts:
|
||||
-- - Integer greater than 1 for fixed width.
|
||||
-- - Float in the range of 0-1 for a percentage of screen width.
|
||||
width = 0.8,
|
||||
|
||||
---@since 1.0.0
|
||||
-- Height of the window. Accepts:
|
||||
-- - Integer greater than 1 for fixed height.
|
||||
-- - Float in the range of 0-1 for a percentage of screen height.
|
||||
height = 0.9,
|
||||
|
||||
icons = {
|
||||
---@since 1.0.0
|
||||
-- The list icon to use for installed packages.
|
||||
package_installed = " ",
|
||||
---@since 1.0.0
|
||||
-- The list icon to use for packages that are installing, or queued for installation.
|
||||
package_pending = " ",
|
||||
---@since 1.0.0
|
||||
-- The list icon to use for packages that are not installed.
|
||||
package_uninstalled = " ",
|
||||
},
|
||||
},
|
||||
}
|
||||
end,
|
||||
}
|
||||
Reference in New Issue
Block a user