2024-12-20 13:15:08 -05:00
|
|
|
vim.g.mapleader = ' '
|
|
|
|
|
vim.g.maplocalleader = ' '
|
|
|
|
|
|
|
|
|
|
vim.g.have_nerd_font = true
|
|
|
|
|
|
|
|
|
|
vim.opt.number = true
|
|
|
|
|
|
|
|
|
|
vim.opt.mouse = 'a'
|
|
|
|
|
|
|
|
|
|
vim.opt.showmode = false
|
|
|
|
|
|
|
|
|
|
vim.schedule(function()
|
|
|
|
|
vim.opt.clipboard = 'unnamedplus'
|
|
|
|
|
end)
|
|
|
|
|
|
|
|
|
|
vim.opt.shiftwidth = 2
|
|
|
|
|
vim.opt.tabstop = 2
|
|
|
|
|
vim.opt.smartindent = true
|
|
|
|
|
vim.opt.expandtab = true
|
|
|
|
|
|
|
|
|
|
vim.opt.breakindent = true
|
|
|
|
|
|
|
|
|
|
vim.opt.undofile = true
|
|
|
|
|
|
|
|
|
|
vim.opt.ignorecase = true
|
|
|
|
|
vim.opt.smartcase = true
|
|
|
|
|
|
|
|
|
|
vim.opt.signcolumn = 'yes'
|
|
|
|
|
|
|
|
|
|
vim.opt.updatetime = 250
|
|
|
|
|
|
|
|
|
|
vim.opt.timeoutlen = 300
|
|
|
|
|
|
|
|
|
|
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.opt.scrolloff = 8
|
|
|
|
|
|
2025-07-13 15:39:41 -04:00
|
|
|
vim.opt.fileencodings = {"ucs-bom", "utf-8", "default", "sjis"}
|
|
|
|
|
|
2024-12-20 13:15:08 -05:00
|
|
|
vim.api.nvim_create_autocmd('TextYankPost', {
|
|
|
|
|
desc = 'Highlight when yanking (copying) text',
|
2025-01-24 14:13:42 -05:00
|
|
|
group = vim.api.nvim_create_augroup('u-highlight-yank', { clear = true }),
|
2024-12-20 13:15:08 -05:00
|
|
|
callback = function()
|
|
|
|
|
vim.highlight.on_yank()
|
|
|
|
|
end,
|
|
|
|
|
})
|
|
|
|
|
vim.cmd.colorscheme 'tokyonight-storm'
|
2025-01-24 14:13:42 -05:00
|
|
|
|
2025-01-28 15:19:44 -05:00
|
|
|
vim.g.loaded_netrwPlugin = 1
|
|
|
|
|
vim.g.loaded_netrw = 1
|