mirror of
https://github.com/tiyn/dotfiles.git
synced 2025-03-18 18:07:45 +01:00
17 lines
413 B
Lua
17 lines
413 B
Lua
vim.api.nvim_create_autocmd({ 'BufEnter' },
|
|
{
|
|
callback = function() vim.o.foldenable = false end
|
|
})
|
|
|
|
vim.api.nvim_create_autocmd({ 'VimLeave' },
|
|
{
|
|
callback = function() os.execute('mdclear ' .. vim.fn.expand('%')) end
|
|
})
|
|
|
|
vim.o.shiftwidth = 2
|
|
vim.o.softtabstop = 2
|
|
vim.o.textwidth = 100
|
|
|
|
-- frabjous/knap
|
|
vim.keymap.set('n', '<leader>p', require("knap").toggle_autopreviewing, { noremap = true })
|