changes
This commit is contained in:
parent
d6bddca261
commit
1a3e5945f4
2 changed files with 16 additions and 1 deletions
|
@ -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
|
||||||
})
|
})
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue