From 19c959f1b04ba25d749d1821b810b1932c5b626e Mon Sep 17 00:00:00 2001 From: Jan Eitzinger Date: Mon, 22 Jan 2024 17:26:01 +0100 Subject: [PATCH] nvim mrkdown autocmds. chezmoi aliases --- dot_config/nvim/lua/config/autocmds.lua | 13 +++++++++++++ dot_zshrc.tmpl | 5 +++++ 2 files changed, 18 insertions(+) diff --git a/dot_config/nvim/lua/config/autocmds.lua b/dot_config/nvim/lua/config/autocmds.lua index 5f87d5a..5b11f88 100644 --- a/dot_config/nvim/lua/config/autocmds.lua +++ b/dot_config/nvim/lua/config/autocmds.lua @@ -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, +}) diff --git a/dot_zshrc.tmpl b/dot_zshrc.tmpl index 121a6c5..f0e1c7c 100644 --- a/dot_zshrc.tmpl +++ b/dot_zshrc.tmpl @@ -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