migrate astronvim conf to astronvim v4
This commit is contained in:
parent
d497490285
commit
37ae6314a9
8 changed files with 138 additions and 125 deletions
40
astronvim/plugins/astrocore.lua
Normal file
40
astronvim/plugins/astrocore.lua
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
---@type LazySpec
|
||||
return {
|
||||
"AstroNvim/astrocore",
|
||||
---@type AstroCoreOpts
|
||||
opts = {
|
||||
features = {
|
||||
large_buf = { size = 1024 * 500, lines = 10000 },
|
||||
autopairs = true,
|
||||
cmp = true,
|
||||
diagnostics_mode = 3,
|
||||
highlighturl = true,
|
||||
notifications = true,
|
||||
},
|
||||
diagnostics = {
|
||||
virtual_text = true,
|
||||
underline = true,
|
||||
},
|
||||
options = {
|
||||
opt = {
|
||||
conceallevel = 2,
|
||||
relativenumber = true,
|
||||
list = true,
|
||||
listchars = { tab = "│→", extends = "⟩", precedes = "⟨", trail = "·", nbsp = "␣" },
|
||||
showbreak = "↪ ",
|
||||
wrap = true,
|
||||
laststatus = 3,
|
||||
splitkeep = "screen",
|
||||
},
|
||||
g = {
|
||||
icons_enabled = true,
|
||||
mapleader = " ",
|
||||
autoformat_enabled = true,
|
||||
cmp_enabled = true,
|
||||
autopairs_enabled = true,
|
||||
diagnostics_enabled = true,
|
||||
status_diagnostics_enabled = true,
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
24
astronvim/plugins/astrolsp.lua
Normal file
24
astronvim/plugins/astrolsp.lua
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
---@type LazySpec
|
||||
return {
|
||||
"AstroNvim/astrolsp",
|
||||
---@type AstroLSPOpts
|
||||
opts = {
|
||||
features = {
|
||||
autoformat = true,
|
||||
codelens = true,
|
||||
semantic_tokens = true,
|
||||
},
|
||||
formatting = {
|
||||
format_on_save = {
|
||||
enabled = true,
|
||||
},
|
||||
timeout_ms = 1000, -- default format timeout
|
||||
|
||||
},
|
||||
servers = {
|
||||
"ruff",
|
||||
"lua_ls",
|
||||
},
|
||||
|
||||
},
|
||||
}
|
||||
7
astronvim/plugins/astroui.lua
Normal file
7
astronvim/plugins/astroui.lua
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
return {
|
||||
"AstroNvim/astroui",
|
||||
---@type AstroUIOpts
|
||||
opts = {
|
||||
colorscheme = "catppuccin-mocha",
|
||||
},
|
||||
}
|
||||
17
astronvim/plugins/catppuccin.lua
Normal file
17
astronvim/plugins/catppuccin.lua
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
return {
|
||||
"catppuccin",
|
||||
opts = {
|
||||
integrations = {
|
||||
sandwich = false,
|
||||
noice = true,
|
||||
mini = true,
|
||||
leap = true,
|
||||
markdown = true,
|
||||
neotest = true,
|
||||
cmp = true,
|
||||
overseer = true,
|
||||
lsp_trouble = true,
|
||||
rainbow_delimiters = true,
|
||||
},
|
||||
},
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue