1
Fork 0
This commit is contained in:
Hadeed 2024-12-07 14:51:15 +05:00
parent d6bddca261
commit 1a3e5945f4
2 changed files with 16 additions and 1 deletions

View file

@ -28,6 +28,16 @@ vim.api.nvim_create_autocmd("Filetype", {
callback = function() callback = function()
vim.cmd [[setlocal tabstop=2 softtabstop=2 shiftwidth=2]] vim.cmd [[setlocal tabstop=2 softtabstop=2 shiftwidth=2]]
vim.bo.formatprg = "prettier --stdin-filepath " .. vim.fn.expand("%:p") 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 end
}) })

View file

@ -60,6 +60,11 @@ ZVM_INSERT_MODE_CURSOR=$ZVM_CURSOR_BLINKING_BEAM
export VISUAL="nvim" export VISUAL="nvim"
export EDITOR="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 if (( $+commands[pyenv] )); then
source <(pyenv init -) source <(pyenv init -)
fi fi