Add customizations
This commit is contained in:
parent
93fde0556e
commit
af39dd4a9f
13 changed files with 151 additions and 28 deletions
19
lua/custom/init.lua
Normal file
19
lua/custom/init.lua
Normal 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
|
||||
]]
|
||||
Loading…
Add table
Add a link
Reference in a new issue