initial commit

This commit is contained in:
Simo-Pekka Kerkelä 2025-07-09 18:33:18 +03:00
commit e34934f58f
No known key found for this signature in database

28
init.lua Normal file
View file

@ -0,0 +1,28 @@
vim.o.undofile = true
vim.o.clipboard = "unnamedplus"
vim.o.laststatus = 0
vim.opt.expandtab = true
vim.opt.shiftwidth = 4
vim.opt.softtabstop = -1
vim.cmd("colorscheme retrobox | highlight Normal guifg=#ffaf00 guibg=#282828")
vim.keymap.set('n', '<space>y', function()
vim.fn.setreg('+', vim.fn.expand('%:p'))
end)
vim.keymap.set("n", "<space>c", function()
vim.ui.input({}, function(c)
if c and c~="" then
vim.cmd("noswapfile vnew")
vim.bo.buftype = "nofile"
vim.bo.bufhidden = "wipe"
vim.api.nvim_buf_set_lines(0, 0, -1, false, vim.fn.systemlist(c))
end
end)
end)
vim.cmd("syntax on")
vim.cmd("set rtp+=/opt/homebrew/opt/fzf")
vim.keymap.set("n", "<space><space>", function()
vim.cmd("FZF")
end)