improve vim config
This commit is contained in:
parent
2ca4566e4a
commit
9fbe12cb94
|
@ -1,5 +1 @@
|
|||
{
|
||||
"python.formatting.provider": "black",
|
||||
"coc.preferences.formatOnType": true,
|
||||
"coc.preferences.formatOnSaveFiletypes": ["python"]
|
||||
}
|
||||
{}
|
||||
|
|
|
@ -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
|
||||
]]
|
||||
|
||||
|
|
|
@ -29,6 +29,9 @@ pkgs:
|
|||
# python
|
||||
coc-pyright
|
||||
|
||||
# web
|
||||
vim-prettier
|
||||
|
||||
# nix
|
||||
vim-nix
|
||||
|
||||
|
|
Loading…
Reference in New Issue