sync: from macOS

This commit is contained in:
js0ny 2024-12-01 07:07:57 +00:00
parent 9436322a73
commit 06ddd359a7
11 changed files with 113 additions and 10 deletions

View file

@ -22,6 +22,8 @@ vim.api.nvim_create_autocmd("FileType", {
pattern = "markdown",
callback = function()
set_markdown_keymaps(0)
vim.opt_local.shiftwidth = 2
vim.opt_local.tabstop = 2
end,
})

View file

@ -1,6 +1,17 @@
return {
{ import = "plugins.mod.lspconfig" },
{ "MeanderingProgrammer/render-markdown.nvim" },
-- {
-- "OXY2DEV/markview.nvim",
-- lazy = false, -- Recommended
-- -- ft = "markdown" -- If you decide to lazy-load anyway
--
-- dependencies = {
-- "nvim-treesitter/nvim-treesitter",
-- "nvim-tree/nvim-web-devicons"
-- }
-- },
{ "williamboman/mason.nvim", config = true },
{
"williamboman/mason-lspconfig.nvim",

View file

@ -1,7 +1,7 @@
return {
"epwalsh/obsidian.nvim",
version = "*", -- recommended, use latest release instead of latest commit
lazy = true,
lazy = false,
ft = "markdown",
-- Replace the above line with this if you only want to load obsidian.nvim for markdown files in your vault:
-- event = {
@ -21,7 +21,7 @@ return {
workspaces = {
{
name = "personal",
path = "/mnt/c/Users/citoy/Obsidian",
path = "~/Obsidian",
},
},
completion = {

View file

@ -0,0 +1,69 @@
# A TOML linter such as https://taplo.tamasfe.dev/ can use this schema to validate your config.
# If you encounter any issues, please make an issue at https://github.com/yazi-rs/schemas.
"$schema" = "https://yazi-rs.github.io/schemas/prepend_keymap.json"
[manager]
prepend_keymap = [
# Hopping
{ on = "e", run = "arrow -1", desc = "Move cursor up" },
{ on = "n", run = "arrow 1", desc = "Move cursor down" },
{ on = "i", run = "enter", desc = "Enter the child directory" },
{ on = "I", run = "forward", desc = "Go forward to the next directory" },
# Seeking
{ on = "E", run = "seek -5", desc = "Seek up 5 units in the preview" },
{ on = "N", run = "seek 5", desc = "Seek down 5 units in the preview" },
# Find
{ on = "k", run = "find_arrow", desc = "Go to the next found" },
{ on = "K", run = "find_arrow --previous", desc = "Go to the previous found" },
]
[tasks]
prepend_keymap = [
{ on = "e", run = "arrow -1", desc = "Move cursor up" },
{ on = "n", run = "arrow 1", desc = "Move cursor down" },
]
[select]
prepend_keymap = [
{ on = "e", run = "arrow -1", desc = "Move cursor up" },
{ on = "n", run = "arrow 1", desc = "Move cursor down" },
]
[input]
prepend_keymap = [
# Mode
{ on = "l", run = "insert", desc = "Enter insert mode" },
{ on = "L", run = [ "move -999", "insert" ], desc = "Move to the BOL, and enter insert mode" },
{ on = "i", run = "move 1", desc = "Move forward a character" },
{ on = "j", run = "forward --end-of-word", desc = "Move forward to the end of the current or next word" },
]
[confirm]
prepend_keymap = [
{ on = "N", run = "close", desc = "Cancel the confirm" },
{ on = "e", run = "arrow -1", desc = "Move cursor up" },
{ on = "n", run = "arrow 1", desc = "Move cursor down" },
]
[completion]
prepend_keymap = [
]
[help]
prepend_keymap = [
# Navigation
{ on = "e", run = "arrow -1", desc = "Move cursor up" },
{ on = "n", run = "arrow 1", desc = "Move cursor down" },
]

View file

@ -0,0 +1,2 @@
[manager]
show_hidden = true

View file

@ -32,4 +32,3 @@ esac
for file in $DOTFILES/tools/zsh/mod/*.zsh; do
source $file
done

View file

@ -58,6 +58,14 @@ fi
if command -v az > /dev/null; then
export AZURE_CONFIG_DIR="$XDG_DATA_HOME"/azure
fi
# Bun JS
# mv ~/.bun $XDG_DATA_HOME/bun
# ln -sf $XDG_DATA_HOME/bun/bin/bun ~/.local/bin/bun
if command -v bun > /dev/null; then
export BUN_INSTALL="$XDG_DATA_HOME"/bun
export PATH="$BUN_INSTALL/bin:$PATH"
[ -s "$BUN_INSTALL/_bun" ] && source "$BUN_INSTALL/_bun"
fi
# Cargo
if command -v cargo > /dev/null; then
export CARGO_HOME="$XDG_DATA_HOME"/cargo