nvim mrkdown autocmds. chezmoi aliases

This commit is contained in:
Jan Eitzinger 2024-01-22 17:26:01 +01:00
parent f394ec67f7
commit 19c959f1b0
2 changed files with 18 additions and 0 deletions

View File

@ -8,3 +8,16 @@ vim.api.nvim_create_autocmd("FileType", {
vim.opt_local.spell = true
end,
})
vim.api.nvim_create_autocmd("FileType", {
pattern = { "markdown" },
callback = function()
vim.opt_local.textwidth = 80
vim.opt_local.wrap = true
vim.opt_local.spell = true
vim.opt_local.tabstop = 2
vim.opt_local.softtabstop = 2
vim.opt_local.shiftwidth = 2
vim.opt_local.expandtab = true
end,
})

View File

@ -20,6 +20,11 @@ export KEYTIMEOUT=1
plugins={{ .plugins }}
#chezmoi aliases
alias ccd= 'chezmoi cd'
alias cdi= 'chezmoi diff'
alias cap= 'chezmoi apply'
source $ZSH/oh-my-zsh.sh
export PATH=/usr/local/bin:/usr/local/sbin:$PATH