95 lines
3.1 KiB
Lua
95 lines
3.1 KiB
Lua
return {
|
|
-- Configure AstroNvim updates
|
|
updater = {
|
|
remote = "origin", -- remote to use
|
|
channel = "stable", -- "stable" or "nightly"
|
|
version = "latest", -- "latest", tag name, or regex search like "v1.*" to only do updates before v2 (STABLE ONLY)
|
|
branch = "nightly", -- branch name (NIGHTLY ONLY)
|
|
commit = nil, -- commit hash (NIGHTLY ONLY)
|
|
pin_plugins = nil, -- nil, true, false (nil will pin plugins on stable only)
|
|
skip_prompts = false, -- skip prompts about breaking changes
|
|
show_changelog = true, -- show the changelog after performing an update
|
|
auto_quit = false, -- automatically quit the current session after a successful update
|
|
remotes = { -- easily add new remotes to track
|
|
-- ["remote_name"] = "https://remote_url.come/repo.git", -- full remote url
|
|
-- ["remote2"] = "github_user/repo", -- GitHub user/repo shortcut,
|
|
-- ["remote3"] = "github_user", -- GitHub user assume AstroNvim fork
|
|
},
|
|
},
|
|
|
|
-- Configure require("lazy").setup() options
|
|
lazy = {
|
|
defaults = { lazy = true },
|
|
performance = {
|
|
rtp = {
|
|
-- customize default disabled vim plugins
|
|
disabled_plugins = { "tohtml", "gzip", "matchit", "zipPlugin", "netrwPlugin", "tarPlugin" },
|
|
},
|
|
},
|
|
},
|
|
|
|
-- This function is run last and is a good place to configuring
|
|
-- augroups/autocommands and custom filetypes also this just pure lua so
|
|
-- anything that doesn't fit in the normal config locations above can go here
|
|
polish = function()
|
|
-- Set up custom filetypes
|
|
-- vim.filetype.add {
|
|
-- extension = {
|
|
-- foo = "fooscript",
|
|
-- },
|
|
-- filename = {
|
|
-- ["Foofile"] = "fooscript",
|
|
-- },
|
|
-- pattern = {
|
|
-- ["~/%.config/foo/.*"] = "fooscript",
|
|
-- },
|
|
-- }
|
|
|
|
vim.filetype.add {
|
|
extension = {
|
|
asm = "nasm",
|
|
},
|
|
}
|
|
|
|
require("catppuccin").compile()
|
|
|
|
vim.api.nvim_create_autocmd({ "VimEnter" }, {
|
|
command = [[ let $SHELL="/bin/fish" ]]
|
|
})
|
|
|
|
vim.api.nvim_create_autocmd({ "FileType", "BufRead", "BufNewFile" }, {
|
|
pattern = "*.s",
|
|
callback = function()
|
|
local indentation = 8
|
|
vim.opt_local.expandtab = true
|
|
vim.opt_local.tabstop = indentation
|
|
vim.opt_local.shiftwidth = indentation
|
|
vim.opt_local.filetype = "s-asm"
|
|
vim.opt_local.syntax = "s-asm"
|
|
vim.opt_local.formatoptions = vim.opt_local.formatoptions + "r"
|
|
end,
|
|
})
|
|
|
|
vim.api.nvim_create_autocmd({ "FileType", "BufRead", "BufNewFile" }, {
|
|
pattern = "*.hdl",
|
|
callback = function()
|
|
local indentation = 4
|
|
vim.opt_local.expandtab = true
|
|
vim.opt_local.tabstop = indentation
|
|
vim.opt_local.shiftwidth = indentation
|
|
vim.opt_local.formatoptions = vim.opt_local.formatoptions + "r"
|
|
end,
|
|
})
|
|
|
|
vim.api.nvim_create_autocmd({ "FileType", "BufRead", "BufNewFile" }, {
|
|
pattern = "*.lua",
|
|
callback = function()
|
|
local indentation = 4
|
|
vim.opt_local.expandtab = true
|
|
vim.opt_local.tabstop = indentation
|
|
vim.opt_local.shiftwidth = indentation
|
|
end,
|
|
})
|
|
end,
|
|
}
|