Skip to content

Commit

Permalink
ugyogyo
Browse files Browse the repository at this point in the history
  • Loading branch information
Nanamiiiii committed Sep 20, 2024
1 parent c702389 commit b7c3859
Show file tree
Hide file tree
Showing 7 changed files with 58 additions and 29 deletions.
23 changes: 5 additions & 18 deletions aerospace/aerospace.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,10 @@ after-login-command = []

after-startup-command = []

start-at-login = true
start-at-login = false

enable-normalization-flatten-containers = false
enable-normalization-opposite-orientation-for-nested-containers = false

accordion-padding = 30

default-root-container-layout = 'tiles'

default-root-container-orientation = 'auto'

key-mapping.preset = 'qwerty'
enable-normalization-flatten-containers = true
enable-normalization-opposite-orientation-for-nested-containers = true

on-focused-monitor-changed = ['move-mouse monitor-lazy-center']

Expand All @@ -22,16 +14,11 @@ inner.horizontal = 5
inner.vertical = 5
outer.left = 5
outer.bottom = 5
outer.top = 5
outer.top = 8
outer.right = 5

[mode.main.binding]
alt-enter = '''exec-and-forget osascript -e '
tell application "WezTerm"
do script
activate
end tell'
'''
alt-enter = 'exec-and-forget open -a "WezTerm"'
alt-b = 'exec-and-forget open -a "Arc"'
alt-n = 'exec-and-forget open -a "Obsidian"'
alt-g = '''exec-and-forget osascript -e '
Expand Down
2 changes: 1 addition & 1 deletion nvim/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
require("options")
require("keymaps")
require("lazy_nvim")
--require("autocmd")
require("autocmd")

-- neovide
require("neovide")
20 changes: 10 additions & 10 deletions nvim/lua/autocmd.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ local ft = require("filetypes")
augroup("rc", {})

-- auto ft detection
--autocmd({ "FileReadPost", "BufAdd", "BufEnter", "BufNew", "BufNewFile", "BufRead" }, {
-- group = "rc",
-- pattern = {"*"},
-- command = "filetype detect",
--})
autocmd({ "FileReadPost", "BufAdd", "BufEnter", "BufNew", "BufNewFile", "BufRead" }, {
group = "rc",
pattern = {"*"},
command = "filetype detect",
})

-- ft specific settings
--autocmd("Filetype", {
-- group = "rc",
-- pattern = "*",
-- callback = function(args) ft[args.match]() end,
--})
autocmd("Filetype", {
group = "rc",
pattern = "*",
callback = function(args) ft[args.match]() end,
})
6 changes: 6 additions & 0 deletions nvim/lua/filetypes.lua
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@ M.make = function()
set_indent(4, false)
end

-- markdown
M.markdown = function()
set_indent(4, true)
vim.opt_local.conceallevel = 1
end

return setmetatable(M, {
__index = function()
return function()
Expand Down
1 change: 1 addition & 0 deletions nvim/lua/options.lua
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ local options = {
termguicolors = true,
pumheight = 15,
scrolloff = 5,
conceallevel = 0,
}

for k, v in pairs(options) do
Expand Down
33 changes: 33 additions & 0 deletions nvim/lua/plugins/obsidian.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
return {
"epwalsh/obsidian.nvim",
version = "*", -- recommended, use latest release instead of latest commit
lazy = true,
ft = "markdown",
-- Replace the above line with this if you only want to load obsidian.nvim for markdown files in your vault:
-- event = {
-- -- If you want to use the home shortcut '~' here you need to call 'vim.fn.expand'.
-- -- E.g. "BufReadPre " .. vim.fn.expand "~" .. "/my-vault/*.md"
-- -- refer to `:h file-pattern` for more examples
-- "BufReadPre path/to/my-vault/*.md",
-- "BufNewFile path/to/my-vault/*.md",
-- },
dependencies = {
"nvim-lua/plenary.nvim",
},
opts = {
workspaces = {
{
name = "Nanami Lab",
path = "~/Documents/Nanami Lab",
},
},
},
daily_notes = {
folder = "Daily Notes",
date_format = "%Y-%m-%d",
alias_format = "%B %-d, %Y",
default_tags = { "daily-notes" },
template = nil
},
}

2 changes: 2 additions & 0 deletions scripts/docker-latexmk
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
docker run --rm -it -v $PWD:/workdir ghcr.io/nanamiiiii/tex-build-container:debian-latest \
sh -c "latexmk -synctex=1 -silent -outdir=./out ${1}"

0 comments on commit b7c3859

Please sign in to comment.