feat(nvim): housekeeping

This commit is contained in:
2025-10-14 02:11:52 +01:00
parent 3f6eee04e6
commit 5cba2ba22b
8 changed files with 180 additions and 151 deletions

View File

@@ -1,54 +1,50 @@
tap "homebrew/autoupdate" # Casks
tap "homebrew/bundle" cask "aerospace"
tap "homebrew/services" cask "jordanbaird-ice@beta"
tap "nikitabobko/tap" cask "monitorcontrol"
cask "opencloud"
cask "sioyek"
cask "wireshark-app"
cask "airbuddy"
cask "karabiner-elements"
cask "mos"
cask "prismlauncher"
cask "stremio"
cask "zen"
cask "bettertouchtool"
cask "flameshot"
cask "keyboard-cleaner"
cask "notchnook"
cask "qbittorrent"
cask "stretchly"
cask "brave-browser"
cask "hot"
cask "obs"
cask "qmk-toolbox"
cask "tailscale-app"
cask "zotero"
cask "discord"
cask "iina"
cask "obsidian"
cask "raycast"
# Tools
brew "atuin"
brew "bat"
brew "btop" brew "btop"
brew "htop" brew "htop"
brew "cmake"
brew "coreutils", link: false
brew "dart-sdk", link: false
brew "duf"
brew "eza" brew "eza"
brew "fd" brew "fd"
brew "fzf" brew "fzf"
brew "gcc"
brew "git" brew "git"
brew "git-delta" brew "git-delta"
brew "git-lfs" brew "gnu-tar"
brew "lazygit" brew "lazygit"
brew "llvm" brew "iperf3"
brew "neovim" brew "ncdu"
brew "openjdk@17"
brew "openssh" brew "openssh"
brew "pandoc"
brew "ripgrep" brew "ripgrep"
brew "rustup" brew "starship"
brew "shellcheck"
brew "texlive", link: false
brew "tmux"
brew "watch"
brew "wget" brew "wget"
cask "aerospace" brew "zsh"
cask "bartender"
cask "discord"
cask "element"
cask "firefox"
cask "flameshot"
cask "font-fira-mono-nerd-font"
cask "font-jetbrains-mono-nerd-font"
cask "iina"
cask "karabiner-elements"
cask "mos"
cask "nextcloud"
cask "notchnook"
cask "obs"
cask "obs-ndi"
cask "obsidian"
cask "raycast"
cask "skim"
cask "stremio"
cask "thunderbird"
cask "wezterm"
cask "wireshark"
cask "zotero"
cask "bitwarden"
cask "wireguard-tools"

View File

@@ -8,9 +8,6 @@ return {
}, },
version = '*', version = '*',
opts = { opts = {
enabled = function()
return not (string.find(vim.bo.filetype, "himalaya") or string.find(vim.bo.filetype, "mail"))
end,
keymap = { keymap = {
preset = 'default', preset = 'default',
['<Up>'] = {}, ['<Up>'] = {},

View File

@@ -19,28 +19,6 @@ return {
event = "VeryLazy", event = "VeryLazy",
opts = {} opts = {}
}, },
-- {
-- "ray-x/go.nvim",
-- dependencies = {
-- "ray-x/guihua.lua",
-- "neovim/nvim-lspconfig",
-- "nvim-treesitter/nvim-treesitter",
-- },
-- config = function(lp, opts)
-- require("go").setup(opts)
-- local format_sync_grp = vim.api.nvim_create_augroup("GoFormat", {})
-- vim.api.nvim_create_autocmd("BufWritePre", {
-- pattern = "*.go",
-- callback = function()
-- require('go.format').goimports()
-- end,
-- group = format_sync_grp,
-- })
-- end,
-- event = { "CmdlineEnter" },
-- ft = { "go", 'gomod' },
-- build = ':lua require("go.install").update_all_sync()'
-- },
{ {
"neovim/nvim-lspconfig", "neovim/nvim-lspconfig",
dependencies = { dependencies = {
@@ -169,48 +147,47 @@ return {
lspconfig["pyright"].setup({ lspconfig["pyright"].setup({
capabilities = capabilities, capabilities = capabilities,
}) })
vim.lsp.config["tinymist"].capabilities = capabilities vim.lsp.config["tinymist"] = {
capabilities = capabilities,
settings = {
-- exportPdf = "onType",
-- outputPath = "$root/$name",
formatterMode = "typstyle",
fontPaths = {
"./fonts"
}
},
on_attach = function(client, bufnr)
vim.keymap.set("n", "<leader>tp", function()
client:exec_cmd({
title = "pin",
command = "tinymist.pinMain",
arguments = { vim.api.nvim_buf_get_name(0) },
}, { bufnr = bufnr })
end, { desc = "[T]inymist [P]in", noremap = true })
vim.keymap.set("n", "<leader>tu", function()
client:exec_cmd({
title = "unpin",
command = "tinymist.pinMain",
arguments = { vim.v.null },
}, { bufnr = bufnr })
end, { desc = "[T]inymist [U]npin", noremap = true })
end,
}
vim.lsp.enable("tinymist") vim.lsp.enable("tinymist")
vim.lsp.config['nil_ls'].capabilities = capabilities
vim.lsp.enable('nil_ls')
end, end,
}, },
{
'mrcjkb/rustaceanvim',
version = '^5',
lazy = false
},
{ {
'chomosuke/typst-preview.nvim', 'chomosuke/typst-preview.nvim',
ft = 'typst', ft = 'typst',
version = '1.*', version = '1.*',
opts = {}, opts = {
}, extra_args = {"--font-path=fonts"},
{ invert_colors = '{"rest": "auto","image": "never"}'
"leoluz/nvim-dap-go", },
ft = "go",
dependencies = "mfussenegger/nvim-dap",
opts = {}
},
{
"rcarriga/nvim-dap-ui",
event = "VeryLazy",
dependencies = { "mfussenegger/nvim-dap", "nvim-neotest/nvim-nio" },
config = function()
local dap = require("dap")
local dapui = require("dapui")
dapui.setup()
dap.listeners.after.event_initialized["dapui_config"] = function()
dapui.open()
end
dap.listeners.before.event_terminated["dapui_config"] = function()
dapui.close()
end
dap.listeners.before.event_exited["dapui_config"] = function()
dapui.close()
end
end
},
{
"mfussenegger/nvim-dap",
}, },
{ {
"stevearc/conform.nvim", "stevearc/conform.nvim",

View File

@@ -25,7 +25,14 @@ return {
statuscolumn = { enabled = true }, statuscolumn = { enabled = true },
dashboard = { enabled = true }, dashboard = { enabled = true },
input = { enabled = true }, input = { enabled = true },
image = { enabled = true }, image = {
doc = {
inline = false,
float = true,
max_width = 10,
max_height = 5,
}
},
lazygit = { lazygit = {
vim.keymap.set('n', '<leader>lg', function() vim.keymap.set('n', '<leader>lg', function()
Snacks.lazygit.open() Snacks.lazygit.open()
@@ -47,27 +54,9 @@ return {
end end
}, },
"tpope/vim-fugitive", "tpope/vim-fugitive",
{
'codethread/qmk.nvim',
config = function()
---@type qmk.UserConfig
local conf = {
name = 'LAYOUT_lily58_pro',
variant = 'zmk',
layout = {
'x x x x x x _ _ _ _ x x x x x x',
'x x x x x x _ _ _ _ x x x x x x',
'x x x x x x _ _ _ _ x x x x x x',
'x x x x x x x _ _ x x x x x x x',
'_ _ _ x x x x _ _ x x x x _ _ _',
}
}
require('qmk').setup(conf)
end
},
{ {
"afonsofrancof/worktrees.nvim", "afonsofrancof/worktrees.nvim",
dev = false, dev = true,
event = "VeryLazy", event = "VeryLazy",
opts = { opts = {
mappings = { mappings = {

View File

@@ -53,5 +53,4 @@ return {
}) })
end end
}, },
"kyoh86/vim-jsonl"
} }

View File

@@ -1,14 +1,5 @@
return { return {
-- {
-- "vimpostor/vim-tpipeline",
-- config = function()
-- vim.g.tpipeline_restore = 0
-- vim.g.tpipeline_autoembed = 0
-- vim.o.laststatus = 0
-- vim.g.tpipeline_statusline = '%=%l:%c'
-- end
-- },
{ {
"folke/noice.nvim", "folke/noice.nvim",
event = "VeryLazy", event = "VeryLazy",
@@ -34,19 +25,6 @@ return {
"MunifTanjim/nui.nvim", "MunifTanjim/nui.nvim",
} }
}, },
{
'kevinhwang91/nvim-ufo',
event = "VeryLazy",
dependencies = 'kevinhwang91/promise-async',
config = function()
vim.o.foldcolumn = '0'
vim.o.foldlevel = 99
vim.o.foldlevelstart = 99
vim.keymap.set('n', 'zR', require('ufo').openAllFolds)
vim.keymap.set('n', 'zM', require('ufo').closeAllFolds)
require('ufo').setup()
end
},
{ {
"OXY2DEV/markview.nvim", "OXY2DEV/markview.nvim",
ft = "markdown", ft = "markdown",
@@ -61,9 +39,4 @@ return {
require 'colorizer'.setup() require 'colorizer'.setup()
end end
}, },
{
"echasnovski/mini.diff",
opts = {}
}
} }

37
.local/bin/macos.sh Executable file
View File

@@ -0,0 +1,37 @@
#!/bin/bash
echo "Configuring macOS system defaults..."
# NSGlobalDomain settings
defaults write -g AppleShowAllExtensions -bool true
defaults write -g ApplePressAndHoldEnabled -bool false
defaults write -g KeyRepeat -int 2
defaults write -g InitialKeyRepeat -int 15
defaults write -g com.apple.mouse.tapBehavior -int 1
defaults write -g com.apple.sound.beep.volume -float 0.0
defaults write -g com.apple.sound.beep.feedback -int 0
# Dock settings
defaults write com.apple.dock autohide -bool true
defaults write com.apple.dock autohide-delay -float 0.1
defaults write com.apple.dock autohide-time-modifier -float 0.0
defaults write com.apple.dock show-recents -bool false
defaults write com.apple.dock launchanim -bool false
defaults write com.apple.dock orientation -string "bottom"
defaults write com.apple.dock tilesize -int 48
defaults write com.apple.dock mineffect -string "scale"
# Finder settings
defaults write com.apple.finder _FXShowPosixPathInTitle -bool true
# Trackpad settings
defaults write com.apple.AppleMultitouchTrackpad Clicking -bool true
defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad Clicking -bool true
defaults write com.apple.AppleMultitouchTrackpad TrackpadThreeFingerDrag -bool true
defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad TrackpadThreeFingerDrag -bool true
echo "Restarting affected services..."
killall Dock
killall Finder
echo "Configuration complete! Some changes may require a logout/login to take effect."

61
Brewfile Normal file
View File

@@ -0,0 +1,61 @@
# Casks
cask "aerospace"
cask "jordanbaird-ice@beta"
cask "monitorcontrol"
cask "opencloud"
cask "sioyek"
cask "wireshark-app"
cask "airbuddy"
cask "karabiner-elements"
cask "mos"
cask "prismlauncher"
cask "stremio"
cask "zen"
cask "bettertouchtool"
cask "flameshot"
cask "keyboard-cleaner"
cask "notchnook"
cask "qbittorrent"
cask "stretchly"
cask "brave-browser"
cask "hot"
cask "obs"
cask "qmk-toolbox"
cask "tailscale-app"
cask "zotero"
cask "discord"
cask "iina"
cask "obsidian"
cask "raycast"
# Tools
brew "atuin"
brew "bat"
brew "btop"
brew "htop"
brew "eza"
brew "fd"
brew "fzf"
brew "git"
brew "git-delta"
brew "gnu-tar"
brew "lazygit"
brew "iperf3"
brew "ncdu"
brew "openssh"
brew "pandoc"
brew "ripgrep"
brew "starship"
brew "zsh"
brew "wget"
brew "ninja"
brew "cmake"
brew "gettext"
brew "curl"
brew "libevent"
brew "ncurses"
brew "utf8proc"
brew "coreutils"
brew "bash"
brew "aria2"
cask "orion"