add autoformat
This commit is contained in:
parent
2d6888798d
commit
8aebc809e7
|
@ -0,0 +1,14 @@
|
|||
#!/usr/bin/env python
|
||||
|
||||
list = [
|
||||
"hehe",
|
||||
"hoho",
|
||||
"haha",
|
||||
"peepeepoopoo",
|
||||
"beeeeeep",
|
||||
"boooooooop",
|
||||
"slfjksdfj",
|
||||
"sjfdksjfksdjfksd",
|
||||
"dskjfksdjfkdsjf",
|
||||
"sfkjsdkfjlkdsjfdsf",
|
||||
]
|
|
@ -1,10 +1,5 @@
|
|||
{
|
||||
"languageserver": {
|
||||
"haskell": {
|
||||
"command": "haskell-language-server-wrapper",
|
||||
"args": ["--lsp"],
|
||||
"rootPatterns": ["*.cabal", "stack.yaml", "cabal.project", "package.yaml", "hie.yaml"],
|
||||
"filetypes": ["haskell", "lhaskell"]
|
||||
}
|
||||
}
|
||||
"python.formatting.provider": "black",
|
||||
"coc.preferences.formatOnType": true,
|
||||
"coc.preferences.formatOnSaveFiletypes": ["python"]
|
||||
}
|
||||
|
|
|
@ -18,6 +18,9 @@ opt.autoread = true --reload files when they are changed on disk
|
|||
|
||||
-- autoformat
|
||||
g.rustfmt_autosave = true -- rustfmt on save
|
||||
vim.cmd[[
|
||||
au BufWrite * :Autoformat
|
||||
]]
|
||||
|
||||
-- highlight yanked text for 200ms using the "Visual" highlight group
|
||||
vim.cmd[[
|
||||
|
|
|
@ -17,6 +17,12 @@ pkgs:
|
|||
# autocompletion
|
||||
coc-nvim
|
||||
|
||||
# formatting
|
||||
vim-autoformat
|
||||
|
||||
# linting
|
||||
ale
|
||||
|
||||
# rust
|
||||
coc-rust-analyzer
|
||||
|
||||
|
@ -38,13 +44,7 @@ pkgs:
|
|||
# colorize brackets
|
||||
rainbow
|
||||
|
||||
# format rust stuff
|
||||
rust-vim
|
||||
|
||||
# theme
|
||||
gruvbox
|
||||
|
||||
# linting
|
||||
ale
|
||||
];
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue