mirror of
https://github.com/morten-olsen/astrovim.git
synced 2026-02-08 01:46:27 +01:00
update
This commit is contained in:
@@ -1,3 +1,37 @@
|
||||
vim.o.wrap = true
|
||||
return {
|
||||
|
||||
local header = {
|
||||
"",
|
||||
" ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄",
|
||||
" █░▄▄▀█▀▄▄▀█░▄▄░█▄░▄█▀▄▀██░▄░██░██░█░▄▄█░▄▄░█",
|
||||
" █░▀▀▄█░██░█░▀▄░██░██░█▀█░▀▀░▀█░██░█▄▄▀███▄██",
|
||||
" █▄█▄▄██▄▄██░▀▀░██▄███▄█████░███▄▄▄█▄▄▄█░▀▀░█",
|
||||
" ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀",
|
||||
" ",
|
||||
" ⣴⣶⣤⡤⠦⣤⣀⣤⠆ ⣈⣭⣿⣶⣿⣦⣼⣆ ",
|
||||
" ⠉⠻⢿⣿⠿⣿⣿⣶⣦⠤⠄⡠⢾⣿⣿⡿⠋⠉⠉⠻⣿⣿⡛⣦ ",
|
||||
" ⠈⢿⣿⣟⠦ ⣾⣿⣿⣷ ⠻⠿⢿⣿⣧⣄ ",
|
||||
" ⣸⣿⣿⢧ ⢻⠻⣿⣿⣷⣄⣀⠄⠢⣀⡀⠈⠙⠿⠄ ",
|
||||
" ⢠⣿⣿⣿⠈ ⣻⣿⣿⣿⣿⣿⣿⣿⣛⣳⣤⣀⣀ ",
|
||||
" ⢠⣧⣶⣥⡤⢄ ⣸⣿⣿⠘ ⢀⣴⣿⣿⡿⠛⣿⣿⣧⠈⢿⠿⠟⠛⠻⠿⠄ ",
|
||||
" ⣰⣿⣿⠛⠻⣿⣿⡦⢹⣿⣷ ⢊⣿⣿⡏ ⢸⣿⣿⡇ ⢀⣠⣄⣾⠄ ",
|
||||
" ⣠⣿⠿⠛ ⢀⣿⣿⣷⠘⢿⣿⣦⡀ ⢸⢿⣿⣿⣄ ⣸⣿⣿⡇⣪⣿⡿⠿⣿⣷⡄ ",
|
||||
" ⠙⠃ ⣼⣿⡟ ⠈⠻⣿⣿⣦⣌⡇⠻⣿⣿⣷⣿⣿⣿ ⣿⣿⡇ ⠛⠻⢷⣄ ",
|
||||
" ⢻⣿⣿⣄ ⠈⠻⣿⣿⣿⣷⣿⣿⣿⣿⣿⡟ ⠫⢿⣿⡆ ",
|
||||
" ⠻⣿⣿⣿⣿⣶⣶⣾⣿⣿⣿⣿⣿⣿⣿⣿⡟⢀⣀⣤⣾⡿⠃ ",
|
||||
"▄▄▄ . ▌ ▐·▪ ▄▄▌ ▄▄▌ ▐ ▄▌▪ ▄▄▄▄▄ ▄ .▄ ▄• ▄▌▄▄▄▄▄",
|
||||
"▀▄.▀·▪█·█▌██ ██• ██· █▌▐███ •██ ██▪▐█ ▄█▀▄ █▪██▌•██ ",
|
||||
"▐▀▀▪▄▐█▐█•▐█·██ ▪ ██▪▐█▐▐▌▐█· ▐█.▪██▀▀█▐█▌.▐▌█▌▐█▌ ▐█.▪",
|
||||
"▐█▄▄▌ ███ ▐█▌▐█▌ ▄ ▐█▌██▐█▌▐█▌ ▐█▌·██▌▐▀▐█▌.▐▌▐█▄█▌ ▐█▌·",
|
||||
" ▀▀▀ . ▀ ▀▀▀.▀▀▀ ▀▀▀▀ ▀▪▀▀▀ ▀▀▀ ▀▀▀ · ▀█▄▀▪ ▀▀▀ ▀▀▀ ",
|
||||
""
|
||||
}
|
||||
|
||||
return {
|
||||
{
|
||||
"goolord/alpha-nvim",
|
||||
opts = function(_, opts) -- override the options using lazy.nvim
|
||||
opts.section.header.val = header
|
||||
end,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,11 @@
|
||||
return {
|
||||
"AstroNvim/astrocommunity",
|
||||
{ import = "astrocommunity.pack.typescript" },
|
||||
{ import = "astrocommunity.pack.cs" },
|
||||
{ import = "astrocommunity.pack.tailwindcss" },
|
||||
{ import = "astrocommunity.pack.terraform" },
|
||||
{ import = "astrocommunity.pack.prisma" },
|
||||
{ import = "astrocommunity.pack.ansible" },
|
||||
-- { import = "astrocommunity.pack.cs" },
|
||||
{ import = "astrocommunity.pack.docker" },
|
||||
{ import = "astrocommunity.pack.markdown" },
|
||||
}
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
return {
|
||||
"AstroNvim/astrocommunity",
|
||||
{ import = "astrocommunity.completion.copilot-lua" },
|
||||
{ import = "astrocommunity.motion.flash-nvim" },
|
||||
{ import = "astrocommunity.bars-and-lines.vim-illuminate" },
|
||||
{ -- further customize the options set by the community
|
||||
"zbirenbaum/copilot.lua",
|
||||
opts = {
|
||||
@@ -18,6 +20,10 @@ return {
|
||||
},
|
||||
--{ import = "astrocommunity.indent/indent-blankline-nvim" },
|
||||
{ import = "astrocommunity.code-runner.overseer-nvim" },
|
||||
{ import = "astrocommunity.editing-support.rainbow-delimiters-nvim" },
|
||||
{ import = "astrocommunity.editing-support.suda-vim" },
|
||||
{ import = "astrocommunity.register.nvim-neoclip-lua" },
|
||||
{ import = "astrocommunity.editing-support.todo-comments-nvim" },
|
||||
{ import = "astrocommunity.motion.portal-nvim" },
|
||||
{ import = "astrocommunity.file-explorer.oil-nvim" },
|
||||
}
|
||||
|
||||
38
plugins/obsidian.lua
Normal file
38
plugins/obsidian.lua
Normal file
@@ -0,0 +1,38 @@
|
||||
return {
|
||||
"epwalsh/obsidian.nvim",
|
||||
lazy = false,
|
||||
-- event = { "BufReadPre " .. vim.fn.expand "~" .. "/notes/**.md" },
|
||||
-- If you want to use the home shortcut '~' here you need to call 'vim.fn.expand':
|
||||
-- event = { "BufReadPre " .. vim.fn.expand "~" .. "/my-vault/**.md" },
|
||||
dependencies = {
|
||||
-- Required.
|
||||
"nvim-lua/plenary.nvim",
|
||||
|
||||
-- see below for full list of optional dependencies 👇
|
||||
},
|
||||
config = function()
|
||||
require("obsidian").setup({
|
||||
dir = "~/notes",
|
||||
mappings = {},
|
||||
notes_subdir = "notes",
|
||||
templates = {
|
||||
subdir = "_templates",
|
||||
date_format = "%Y-%m-%d-%a",
|
||||
time_format = "%H:%M"
|
||||
},
|
||||
daily_notes = {
|
||||
-- Optional, if you keep daily notes in a separate directory.
|
||||
folder = "dailies",
|
||||
-- Optional, if you want to change the date format for daily notes.
|
||||
date_format = "%Y-%m-%d"
|
||||
},
|
||||
})
|
||||
vim.keymap.set("n", "gf", function()
|
||||
if require("obsidian").util.cursor_on_markdown_link() then
|
||||
return "<cmd>ObsidianFollowLink<CR>"
|
||||
else
|
||||
return "gf"
|
||||
end
|
||||
end, { noremap = false, expr = true })
|
||||
end,
|
||||
}
|
||||
@@ -6,5 +6,9 @@ return {
|
||||
config = function()
|
||||
require("catppuccin").setup {}
|
||||
end,
|
||||
opts = { integrations = { rainbow_delimiters = true } },
|
||||
},
|
||||
{ import = "astrocommunity.colorscheme.oxocarbon-nvim" },
|
||||
{ import = "astrocommunity.colorscheme.nightfox-nvim" },
|
||||
{ import = "astrocommunity.colorscheme.rose-pine" },
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user