From 1a3e5945f40c06777c6d80c1896dfe713a73f801 Mon Sep 17 00:00:00 2001 From: Hadeed Ahmad Date: Sat, 7 Dec 2024 14:51:15 +0500 Subject: [PATCH] changes --- nvim/lua/filetypes.lua | 12 +++++++++++- zsh/dot-zshrc | 5 +++++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/nvim/lua/filetypes.lua b/nvim/lua/filetypes.lua index c9ad8f7..a80698e 100644 --- a/nvim/lua/filetypes.lua +++ b/nvim/lua/filetypes.lua @@ -28,6 +28,16 @@ vim.api.nvim_create_autocmd("Filetype", { callback = function() vim.cmd [[setlocal tabstop=2 softtabstop=2 shiftwidth=2]] vim.bo.formatprg = "prettier --stdin-filepath " .. vim.fn.expand("%:p") - require("minimal-format").toggle_autocmd(0) + require("minimal-format").enable_autocmd(0) + end +}) + +vim.api.nvim_create_autocmd("Filetype", { + group = vim.api.nvim_create_augroup("zola", {}), + pattern = { "htmldjango" }, + callback = function() + vim.cmd [[setlocal tabstop=2 softtabstop=2 shiftwidth=2]] + vim.bo.formatprg = "djhtml -; echo" + require("minimal-format").enable_autocmd(0) end }) diff --git a/zsh/dot-zshrc b/zsh/dot-zshrc index 9b4337c..c59b87a 100644 --- a/zsh/dot-zshrc +++ b/zsh/dot-zshrc @@ -60,6 +60,11 @@ ZVM_INSERT_MODE_CURSOR=$ZVM_CURSOR_BLINKING_BEAM export VISUAL="nvim" export EDITOR="nvim" +if (( $+commands[npm] )); then + export npm_config_prefix="$HOME/.local/npm" + path+="$HOME/.local/npm/bin" +fi + if (( $+commands[pyenv] )); then source <(pyenv init -) fi