Add customizations

This commit is contained in:
k-knosala 2024-03-28 21:19:31 +01:00
parent 93fde0556e
commit af39dd4a9f
13 changed files with 151 additions and 28 deletions

19
lua/custom/init.lua Normal file
View file

@ -0,0 +1,19 @@
-- Fold code by expression
vim.opt.foldenable = false
vim.opt.foldmethod = 'expr'
vim.opt.foldexpr = 'nvim_treesitter#foldexpr()'
-- Turn off line wrapping
vim.opt.wrap = false
-- Typst filetype support
vim.filetype.add { extension = { typ = 'typst' } }
-- Reset the cursor after leaving vim. Without this, the cursor changes to a
-- block for the terminal.
vim.cmd [[
augroup RestoreCursorShapeOnExit
autocmd!
autocmd VimLeave * set guicursor=a:ver1
augroup END
]]