2023-12-12 12:16:58 +00:00
|
|
|
vim.opt.autowrite = true
|
|
|
|
vim.opt.cursorline = true
|
|
|
|
vim.opt.autoread = true
|
|
|
|
|
|
|
|
vim.opt.tabstop = 2
|
|
|
|
vim.opt.shiftround = true
|
|
|
|
vim.opt.shiftwidth = 2
|
|
|
|
vim.opt.expandtab = true
|
|
|
|
|
|
|
|
vim.wo.number = true
|
2024-01-03 21:06:27 +00:00
|
|
|
vim.wo.relativenumber = true
|
2023-12-12 12:16:58 +00:00
|
|
|
vim.wo.signcolumn = "yes"
|
|
|
|
vim.o.undofile = true
|
|
|
|
vim.o.clipboard = "unnamedplus"
|
|
|
|
|
2024-02-19 17:28:18 +00:00
|
|
|
vim.o.showmode = false
|
|
|
|
|
2023-12-12 12:16:58 +00:00
|
|
|
vim.cmd([[ set noswapfile ]])
|
|
|
|
|
|
|
|
-- Neovide
|
|
|
|
-- Put anything you want to happen only in Neovide here
|
|
|
|
if vim.g.neovide then
|
|
|
|
vim.o.guifont = "monospace:h12"
|
|
|
|
|
|
|
|
-- Terminal-emulator-like copy/pasting
|
|
|
|
local opts = { noremap = true, silent = true }
|
|
|
|
local keymap = vim.api.nvim_set_keymap
|
|
|
|
keymap("n", "<C-C>", '"*y :let @+=@*<CR>', opts)
|
|
|
|
keymap("n", "<C-V>", '"+p', opts)
|
|
|
|
end
|