improve vim config

This commit is contained in:
zoe 2022-11-14 12:28:54 +01:00
parent 2ca4566e4a
commit 9fbe12cb94
4 changed files with 11 additions and 6 deletions

View File

@ -1,5 +1 @@
{
"python.formatting.provider": "black",
"coc.preferences.formatOnType": true,
"coc.preferences.formatOnSaveFiletypes": ["python"]
}
{}

View File

@ -17,8 +17,13 @@ vim.cmd([[colorscheme gruvbox]])
opt.autoread = true --reload files when they are changed on disk
-- autoformat
g.rustfmt_autosave = true -- rustfmt on save
g.autoformat_autoindent = false
g.autoformat_retab = false
g.autoformat_remove_trailing_spaces = true
vim.cmd[[
let g:prettier#autoformat_config_present = 1
let g:prettier#autoformat_config_files = ["prettier.config.js"]
au BufWrite * :Autoformat
]]

View File

@ -29,6 +29,9 @@ pkgs:
# python
coc-pyright
# web
vim-prettier
# nix
vim-nix

View File

@ -65,6 +65,7 @@
# dev
## js
nodejs
nodePackages.prettier
## rust
rust-analyzer
rustup