2024-11-10 11:23:44 +00:00
|
|
|
vim.opt.guicursor = ""
|
|
|
|
|
|
|
|
vim.opt.nu = true
|
|
|
|
vim.opt.relativenumber = true
|
|
|
|
|
|
|
|
vim.opt.tabstop = 4
|
|
|
|
vim.opt.softtabstop = 4
|
|
|
|
vim.opt.shiftwidth = 4
|
|
|
|
vim.opt.expandtab = true
|
|
|
|
|
|
|
|
vim.opt.smartindent = true
|
|
|
|
|
|
|
|
vim.opt.wrap = false
|
|
|
|
|
|
|
|
vim.opt.swapfile = false
|
|
|
|
vim.opt.backup = false
|
2024-11-18 16:20:25 +00:00
|
|
|
vim.opt.backupdir = "C:/Windows/Temp"
|
2024-11-10 11:23:44 +00:00
|
|
|
vim.opt.undodir = "C:/Users/zakla/.undodir"
|
|
|
|
vim.opt.undofile = true
|
2024-11-11 12:57:17 +00:00
|
|
|
-- vim.opt.shellcmdflag = ""
|
|
|
|
-- vim.opt.clipboard = 'unnamedplus'
|
2024-11-15 19:27:03 +00:00
|
|
|
vim.schedule(function()
|
|
|
|
vim.opt.clipboard = 'unnamedplus'
|
|
|
|
end)
|
2024-11-10 11:23:44 +00:00
|
|
|
|
|
|
|
vim.opt.hlsearch = false
|
|
|
|
vim.opt.incsearch = true
|
|
|
|
vim.opt.termguicolors = true
|
2024-11-11 12:57:17 +00:00
|
|
|
vim.opt.scrolloff = 16
|
2024-11-10 11:23:44 +00:00
|
|
|
vim.opt.signcolumn = "yes"
|
|
|
|
vim.opt.isfname:append("@-@")
|
|
|
|
vim.opt.updatetime = 50
|
2024-11-15 19:42:32 +00:00
|
|
|
vim.opt.gdefault = true
|
|
|
|
vim.opt.timeoutlen = 300
|
2024-11-10 11:54:25 +00:00
|
|
|
vim.opt.colorcolumn = "120"
|
2024-11-15 19:27:03 +00:00
|
|
|
-- views can only be fully collapsed with the global statusline
|
|
|
|
-- vim.opt.laststatus = 3
|
|
|
|
-- Make line numbers default
|
|
|
|
vim.opt.number = true
|
|
|
|
vim.opt.mouse = 'a'
|
|
|
|
vim.opt.showmode = false
|
|
|
|
|
|
|
|
vim.schedule(function()
|
|
|
|
vim.opt.clipboard = 'unnamedplus'
|
|
|
|
end)
|
|
|
|
|
|
|
|
vim.opt.breakindent = true
|
|
|
|
vim.opt.splitright = true
|
|
|
|
vim.opt.splitbelow = true
|
|
|
|
vim.opt.list = true
|
|
|
|
vim.opt.listchars = { tab = '» ', trail = '·', nbsp = '␣' }
|
|
|
|
vim.opt.inccommand = 'split'
|
|
|
|
vim.opt.cursorline = true
|
|
|
|
|
|
|
|
vim.api.nvim_create_autocmd('TextYankPost', {
|
|
|
|
desc = 'Highlight when yanking (copying) text',
|
|
|
|
group = vim.api.nvim_create_augroup('kickstart-highlight-yank', { clear = true }),
|
|
|
|
callback = function()
|
|
|
|
vim.highlight.on_yank()
|
|
|
|
end,
|
|
|
|
})
|
2024-11-10 15:49:52 +00:00
|
|
|
|
|
|
|
vim.cmd [[
|
2024-11-10 16:03:10 +00:00
|
|
|
augroup TerminalStuff
|
|
|
|
autocmd BufWinEnter,WinEnter term://* startinsert
|
|
|
|
autocmd BufLeave term://* stopinsert
|
|
|
|
augroup END
|
2024-11-10 15:49:52 +00:00
|
|
|
]]
|
2024-11-10 16:03:10 +00:00
|
|
|
|