vim update

This commit is contained in:
h
2026-06-13 21:57:40 -04:00
parent bcc5e8ce98
commit f44e1cdc22
16 changed files with 2415 additions and 58 deletions
+73
View File
@@ -0,0 +1,73 @@
local o = vim.opt
local map = vim.api.nvim_set_keymap
o.expandtab = true
o.tabstop = 4
o.shiftwidth = 0
o.viminfo = ''
vim.g.base16colorspace = 256
vim.g.vimtex_view_method = "zathura"
o.termguicolors = true
vim.b.coqtail_coq_prog = "coqidetop"
vim.cmd [[
augroup spellcheck
au!
au FileType markdown setlocal spell
au FileType plaintex setlocal spell
au FileType tex setlocal spell
au FileType latex setlocal spell
au BufRead,BufNewFile *.md setlocal spell
au BufRead,BufNewFile *.tex setlocal spell
augroup END
]]
o.spelllang = "en_us"
map('i', '<C-L>', '<c-g>u<Esc>[s1z=`]a<c-g>u', { noremap = true })
vim.cmd('colorscheme theme-nvim')
vim.g.airline_theme = 'theme'
vim.cmd("AirlineTheme theme")
-- stupid fix for stupid problems i guess
vim.g["airline#extensions#whitespace#enabled"] = false
local color = require('base16-colorscheme').colors.base02
vim.api.nvim_set_hl(0, 'LineNr', { fg = color, bg = "none" })
map('n', '<Leader>s', ':%s//g<Left><Left>', {})
map('n', '<Leader>e', ':make!<CR>', { noremap = true })
map('n', '<C-o>', ':cclose<CR>', { noremap = true })
map('n', '<C-L>', ':nohlsearch<CR><C-L>', { noremap = true, silent = true })
map('n', ';', ':', { noremap = true })
map('v', ';', ':', { noremap = true })
for i = 1, 9, 1 do
map('', '<Leader>' .. tostring(i), tostring(i) .. 'gt', { noremap = true })
end
map('n', '<C-Left>', ':tabprevious<CR>', { noremap = true })
map('n', '<C-Right>', ':tabnext<CR>', { noremap = true })
map('', '<Leader>0', ':tablast<CR>', { noremap = true })
map('n', 'ZX', '<Cmd>q<CR>', { noremap = true, silent = true })
map('t', '<Esc>', '<C-\\><C-n>', { noremap = true })
o.list = true
o.listchars = {
tab = '',
eol = '¬',
trail = '·',
extends = ''
}
vim.cmd [[
augroup options_guicursor
au!
" Reset to vertical cursor for terminal nvim (https://github.com/neovim/neovim/issues/4867#issuecomment-291249173)
au VimLeave * set guicursor=a:ver90
augroup END
]]