astro-nvim-v3 - archive v7

This commit is contained in:
huyjaky
2024-08-11 13:27:52 +07:00
parent 7c830a8689
commit ff0d28d168
8 changed files with 126 additions and 178 deletions

View File

@@ -28,7 +28,7 @@ return {
-- Configure auto saving
autosave = {
last = true, -- auto save last session
cwd = true, -- auto save session for each working directory
cwd = false, -- auto save session for each working directory
},
-- Patterns to ignore when saving sessions
ignore = {

View File

@@ -64,50 +64,50 @@ return {
-- },
-- },
-- Better indent blankline
{
"shellRaining/hlchunk.nvim",
event = { "BufReadPre", "BufNewFile" },
config = function(_, opts)
require("hlchunk").setup(require("astrocore").extend_tbl(opts, {
ignore = {},
chunk = {
enable = true,
notify = false,
chars = {
-- horizontal_line = "━",
-- vertical_line = "┃",
-- left_top = "┏",
-- left_bottom = "┗",
-- right_arrow = "➤",
},
style = "#06D001",
delay = 25,
},
indent = {
enable = false,
use_treesitter = true,
chars = {
"",
},
},
blank = {
enable = false,
chars = {
" ",
},
style = {
{ bg = "#434437" },
{ bg = "#2f4440" },
{ bg = "#433054" },
{ bg = "#284251" },
},
},
line_num = {
enable = false,
},
}))
end,
},
-- {
-- "shellRaining/hlchunk.nvim",
-- event = { "BufReadPre", "BufNewFile" },
-- config = function(_, opts)
-- require("hlchunk").setup(require("astrocore").extend_tbl(opts, {
-- ignore = {},
-- chunk = {
-- enable = true,
-- notify = false,
-- chars = {
-- -- horizontal_line = "━",
-- -- vertical_line = "┃",
-- -- left_top = "┏",
-- -- left_bottom = "┗",
-- -- right_arrow = "➤",
-- },
-- style = "#06D001",
-- delay = 25,
-- },
-- indent = {
-- enable = false,
-- use_treesitter = true,
-- chars = {
-- "│",
-- },
-- },
-- blank = {
-- enable = false,
-- chars = {
-- " ",
-- },
-- style = {
-- { bg = "#434437" },
-- { bg = "#2f4440" },
-- { bg = "#433054" },
-- { bg = "#284251" },
-- },
-- },
-- line_num = {
-- enable = false,
-- },
-- }))
-- end,
-- },
-- AI code completion
-- {
-- "monkoose/neocodeium",
@@ -249,17 +249,17 @@ return {
},
},
-- Markdown preview support
{
"OXY2DEV/markview.nvim",
dependencies = {
{
"nvim-treesitter/nvim-treesitter",
opts = function(_, opts)
opts.ensure_installed =
require("astrocore").list_insert_unique(opts.ensure_installed, { "markdown", "markdown_inline" })
end,
},
},
ft = { "markdown" },
},
-- {
-- "OXY2DEV/markview.nvim",
-- dependencies = {
-- {
-- "nvim-treesitter/nvim-treesitter",
-- opts = function(_, opts)
-- opts.ensure_installed =
-- require("astrocore").list_insert_unique(opts.ensure_installed, { "markdown", "markdown_inline" })
-- end,
-- },
-- },
-- ft = { "markdown" },
-- },
}

View File

@@ -1,3 +1,5 @@
if true then return {} end
return {
"mg979/vim-visual-multi",
event = "VeryLazy",

View File

@@ -7,34 +7,34 @@ return {
require("noice").setup {
-- Configuration here, or leave empty to use defaults
views = {
cmdline_popup = {
position = {
row = "50%",
col = "50%",
},
size = {
width = 60,
height = "auto",
},
},
popupmenu = {
relative = "editor",
position = {
row = 8,
col = "50%",
},
size = {
width = 60,
height = 10,
},
border = {
style = "rounded",
padding = { 0, 1 },
},
win_options = {
winhighlight = { Normal = "Normal", FloatBorder = "DiagnosticInfo" },
},
},
-- cmdline_popup = {
-- position = {
-- row = "50%",
-- col = "50%",
-- },
-- size = {
-- width = 60,
-- height = "auto",
-- },
-- },
-- popupmenu = {
-- relative = "editor",
-- position = {
-- row = 8,
-- col = "50%",
-- },
-- size = {
-- width = 60,
-- height = 10,
-- },
-- border = {
-- style = "rounded",
-- padding = { 0, 1 },
-- },
-- win_options = {
-- winhighlight = { Normal = "Normal", FloatBorder = "DiagnosticInfo" },
-- },
-- },
},
messages = {
enabled = false, -- disables the Noice messages UI
@@ -57,7 +57,7 @@ return {
},
},
presets = {
bottom_search = true, -- use a classic bottom cmdline for search
bottom_search = false, -- use a classic bottom cmdline for search
command_palette = true, -- position the cmdline and popupmenu together
long_message_to_split = false, -- long messages will be sent to a split
inc_rename = false, -- enables an input dialog for inc-rename.nvim
@@ -92,65 +92,6 @@ return {
},
}
end,
opts = function(_, opts)
local utils = require "astrocore"
return utils.extend_tbl(opts, {
lsp = {
progress = {
enabled = false,
},
hover = {
enabled = false, -- disables Noice LSP hover
},
signature = {
enabled = false, -- disables Noice LSP signature help
},
message = {
enabled = false,
},
},
presets = {
bottom_search = true, -- use a classic bottom cmdline for search
command_palette = true, -- position the cmdline and popupmenu together
long_message_to_split = false, -- long messages will be sent to a split
inc_rename = false, -- enables an input dialog for inc-rename.nvim
lsp_doc_border = false, -- add a border to hover docs and signature help
},
messages = {
enabled = false, -- disables the Noice messages UI
},
notify = {
enabled = false, -- disables Noice notifications
},
routes = {
-- disable "written" notification
{
filter = { event = "msg_show", kind = "", find = "written" },
opts = { skip = true },
},
-- disable paste/undo notification
{
filter = { event = "msg_show", find = "^%d+ more lines" },
opts = { skip = true },
},
-- disable delete/undo notification
{
filter = { event = "msg_show", find = "^%d+ fewer lines" },
opts = { skip = true },
},
-- disable yank notification
{
filter = { event = "msg_show", find = "^%d+ lines yanked$" },
opts = { skip = true },
},
-- disable move notification
{
filter = { event = "msg_show", find = "^%d+ lines moved$" },
},
},
})
end,
specs = {
{
"nvim-treesitter/nvim-treesitter",

View File

@@ -20,13 +20,17 @@ return {
opts = function(_, opts)
-- Do this to prevent the warning
opts.background_colour = "#000000"
opts.timeout = 2000
opts.fps = 60
opts.render = "compact"
opts.top_down = false
end,
},
-- Icons support
{
"echasnovski/mini.icons",
opts = function(_, opts)
if vim.g.icons_enabled == false then opts.style = "ascii" end
if vim.g.icons_enabled == false then opts.style = "glyph" end
end,
lazy = true,
specs = {