Skip to content

Instantly share code, notes, and snippets.

View vebbis321's full-sized avatar

Thel vebbis321

View GitHub Profile
@vebbis321
vebbis321 / gist:41b91b56787ea3ad8f75853a7e9cb408
Last active June 13, 2025 12:06
Enable harper for only certain paths
root_dir = function(bufnr, on_dir)
local fname = vim.api.nvim_buf_get_name(bufnr)
local path = vim.loop.fs_realpath(fname)
if not path then
return nil
end
local allowed_dirs = {
vim.loop.fs_realpath(vim.fn.expand("~/wiki/math")),
vim.loop.fs_realpath(vim.fn.expand("~/wiki/physics")),
@vebbis321
vebbis321 / config
Created January 7, 2025 18:59 — forked from adibhanna/config
Ghostty config
font-family = BerkeleyMono Nerd Font
#font-family = Iosevka Nerd Font
# font-family = SFMono Nerd Font
font-size = 20
theme = GruvboxDarkHard
shell-integration-features = no-cursor,sudo,no-title
cursor-style = block
adjust-cell-height = 35%
# background-opacity = 0.96
@vebbis321
vebbis321 / .swiftformat
Created August 17, 2023 08:14
My swiftformat for professional use
# Exclude checkout directories for common package managers
--exclude Pods,**/.build,**/Package.swift,vendor/bundle,scripts,fastlane,**/L10n.swift,**/Assets.swift,**/*.generated.swift
# options
--swiftversion 5.7
--indent 2 #indent
--indentstrings true #indent
--someAny disabled # opaqueGenericParameters
--wraparguments before-first # wrapArguments
--wrapparameters before-first # wrapArguments
@vebbis321
vebbis321 / .swiftlint.yml
Last active August 18, 2023 06:48
My default swiftlint for professional use
excluded:
- ${PWD}/Carthage
- ${PWD}/Pods
- ${PWD}/DerivedData
- Package.swift
included:
- ${PWD}
force_cast: warning