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",
|
||||||
|
]
|
|
@ -2,8 +2,8 @@
|
||||||
let
|
let
|
||||||
myConfig = import ./config.nix;
|
myConfig = import ./config.nix;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
package = pkgs.i3-gaps;
|
package = pkgs.i3-gaps;
|
||||||
enable = true;
|
enable = true;
|
||||||
config = myConfig;
|
config = myConfig;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,10 +1,5 @@
|
||||||
{
|
{
|
||||||
"languageserver": {
|
"python.formatting.provider": "black",
|
||||||
"haskell": {
|
"coc.preferences.formatOnType": true,
|
||||||
"command": "haskell-language-server-wrapper",
|
"coc.preferences.formatOnSaveFiletypes": ["python"]
|
||||||
"args": ["--lsp"],
|
|
||||||
"rootPatterns": ["*.cabal", "stack.yaml", "cabal.project", "package.yaml", "hie.yaml"],
|
|
||||||
"filetypes": ["haskell", "lhaskell"]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -18,6 +18,9 @@ opt.autoread = true --reload files when they are changed on disk
|
||||||
|
|
||||||
-- autoformat
|
-- autoformat
|
||||||
g.rustfmt_autosave = true -- rustfmt on save
|
g.rustfmt_autosave = true -- rustfmt on save
|
||||||
|
vim.cmd[[
|
||||||
|
au BufWrite * :Autoformat
|
||||||
|
]]
|
||||||
|
|
||||||
-- highlight yanked text for 200ms using the "Visual" highlight group
|
-- highlight yanked text for 200ms using the "Visual" highlight group
|
||||||
vim.cmd[[
|
vim.cmd[[
|
||||||
|
|
|
@ -17,6 +17,12 @@ pkgs:
|
||||||
# autocompletion
|
# autocompletion
|
||||||
coc-nvim
|
coc-nvim
|
||||||
|
|
||||||
|
# formatting
|
||||||
|
vim-autoformat
|
||||||
|
|
||||||
|
# linting
|
||||||
|
ale
|
||||||
|
|
||||||
# rust
|
# rust
|
||||||
coc-rust-analyzer
|
coc-rust-analyzer
|
||||||
|
|
||||||
|
@ -38,13 +44,7 @@ pkgs:
|
||||||
# colorize brackets
|
# colorize brackets
|
||||||
rainbow
|
rainbow
|
||||||
|
|
||||||
# format rust stuff
|
|
||||||
rust-vim
|
|
||||||
|
|
||||||
# theme
|
# theme
|
||||||
gruvbox
|
gruvbox
|
||||||
|
|
||||||
# linting
|
|
||||||
ale
|
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
5
sync.sh
5
sync.sh
|
@ -3,14 +3,11 @@
|
||||||
# update in case i was fucking around somewhere else
|
# update in case i was fucking around somewhere else
|
||||||
git pull
|
git pull
|
||||||
|
|
||||||
# format everything to look nice
|
|
||||||
nixpkgs-fmt *.nix ./*/*.nix
|
|
||||||
|
|
||||||
# make a backup just in case
|
# make a backup just in case
|
||||||
# cp -r /etc/nixos/ ./backup
|
# cp -r /etc/nixos/ ./backup
|
||||||
|
|
||||||
# copy over all the files to /etc/nixos/
|
# copy over all the files to /etc/nixos/
|
||||||
sudo cp -r ./configuration.nix ./wallpaper.png ./dunst ./rofi ./i3 ./fish ./kitty ./nvim/ ./packages.nix ./home.nix ./services.nix ./user.nix /etc/nixos/
|
sudo cp -r ./configuration.nix ./wallpaper.png ./dunst ./rofi ./i3 ./fish ./kitty ./nvim/ ./packages.nix ./home.nix ./services.nix ./user.nix /etc/nixos/
|
||||||
|
|
||||||
# build penrose and copy it to nixos folder
|
# build penrose and copy it to nixos folder
|
||||||
# cd ./penrose
|
# cd ./penrose
|
||||||
|
|
Loading…
Reference in New Issue