47 lines
2.0 KiB
Lua
47 lines
2.0 KiB
Lua
-- AstroCore provides a central place to modify mappings, vim options, autocommands, and more!
|
|
-- Configuration documentation can be found with `:h astrocore`
|
|
-- NOTE: We highly recommend setting up the Lua Language Server (`:LspInstall lua_ls`)
|
|
-- as this provides autocomplete and documentation while editing
|
|
|
|
---@type LazySpec
|
|
return {
|
|
"AstroNvim/astrocore",
|
|
---@type AstroCoreOpts
|
|
opts = {
|
|
-- 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
|
|
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 = true, -- enable notifications at start
|
|
},
|
|
-- Diagnostics configuration (for vim.diagnostics.config({...})) when diagnostics are on
|
|
diagnostics = {
|
|
virtual_text = true,
|
|
underline = true,
|
|
update_in_insert = false,
|
|
},
|
|
-- Configuration table of session options for AstroNvim's session management powered by Resession
|
|
sessions = {
|
|
-- Configure auto saving
|
|
autosave = {
|
|
last = false, -- auto save last session
|
|
cwd = false, -- auto save session for each working directory
|
|
},
|
|
-- Patterns to ignore when saving sessions
|
|
ignore = {
|
|
dirs = {}, -- working directories to ignore sessions in
|
|
filetypes = { "gitcommit", "gitrebase" }, -- filetypes to ignore sessions
|
|
buftypes = {}, -- buffer types to ignore sessions
|
|
},
|
|
},
|
|
-- vim options can be configured here
|
|
options = require "core.options",
|
|
-- Mappings can be configured through AstroCore as well.
|
|
-- NOTE: keycodes follow the casing in the vimdocs. For example, `<Leader>` must be capitalized
|
|
mappings = require "core.mappings"(),
|
|
},
|
|
}
|