Skip to content

Instantly share code, notes, and snippets.

@astr0n8t
Created October 2, 2025 04:59
Show Gist options
  • Select an option

  • Save astr0n8t/c8483113f545d76ae9f4be70077fd503 to your computer and use it in GitHub Desktop.

Select an option

Save astr0n8t/c8483113f545d76ae9f4be70077fd503 to your computer and use it in GitHub Desktop.
bland init.lua
local map = vim.keymap.set
-- leader y/p to clip
map({ "n", "v" }, "<leader>y", '"+y')
map({ "n", "v" }, "<leader>p", '"+p')
-- f/r magic from prime
map("n", "<leader>s", [[:%s/\<<C-r><C-w>\>/<C-r><C-w>/gI<Left><Left><Left>]])
-- generic opts
vim.opt.mouse = ""
vim.opt.relativenumber = true
vim.opt.number = true
vim.opt.spell = false
vim.opt.signcolumn = "yes"
vim.opt.wrap = false
vim.opt.filetype = "on"
vim.opt.nu = true
vim.opt.relativenumber = true
vim.opt.tabstop = 2
vim.opt.softtabstop = 2
vim.opt.shiftwidth = 2
vim.opt.expandtab = true
vim.opt.smartindent = true
vim.opt.swapfile = false
vim.opt.backup = false
vim.opt.undodir = os.getenv("HOME") .. "/.vim/undodir"
vim.opt.undofile = true
vim.opt.hlsearch = false
vim.opt.incsearch = true
vim.opt.scrolloff = 20
vim.opt.updatetime = 50
vim.opt.colorcolumn = "80"
vim.api.nvim_create_augroup("WrapSettings", { clear = true })
vim.api.nvim_create_autocmd({ "FileType" }, {
group = "WrapSettings",
pattern = { "markdown" },
callback = function()
vim.opt_local.wrap = true
end,
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment