add autoformat

This commit is contained in:
zoe 2022-11-02 11:31:45 +01:00
parent 2d6888798d
commit 8aebc809e7
6 changed files with 32 additions and 23 deletions

14
i3/brightness.py Executable file
View File

@ -0,0 +1,14 @@
#!/usr/bin/env python
list = [
"hehe",
"hoho",
"haha",
"peepeepoopoo",
"beeeeeep",
"boooooooop",
"slfjksdfj",
"sjfdksjfksdjfksd",
"dskjfksdjfkdsjf",
"sfkjsdkfjlkdsjfdsf",
]

View File

@ -2,8 +2,8 @@
let
myConfig = import ./config.nix;
in
{
package = pkgs.i3-gaps;
enable = true;
config = myConfig;
}
{
package = pkgs.i3-gaps;
enable = true;
config = myConfig;
}

View File

@ -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"]
}

View File

@ -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[[

View File

@ -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
];
}

View File

@ -3,14 +3,11 @@
# update in case i was fucking around somewhere else
git pull
# format everything to look nice
nixpkgs-fmt *.nix ./*/*.nix
# make a backup just in case
# cp -r /etc/nixos/ ./backup
# 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
# cd ./penrose