Compare commits

...

2 Commits

Author SHA1 Message Date
mandlm e11c574c6e
docs: protocol lenovo yoga 500 setup 2022-08-22 21:14:55 +02:00
mandlm d873f5ffb1
feat(neovim): use treesitter for folding 2022-08-22 07:57:14 +02:00
2 changed files with 52 additions and 1 deletions

48
docs/yoga-setup-log.md Normal file
View File

@ -0,0 +1,48 @@
### Installer system
```bash
fdisk /dev/sda
> g
> n
> 1
> 2048
> +512M
> t
> 1
> n
> 2
> default
> default
> t
> 2
> 20
> w
mkfs.fat -F 32 -n boot /dev/sda1
cryptsetup -y -v luksFormat /dev/sda2
cryptsetup -v luksOpen /dev/sda2 nixos
pvcreate /dev/mapper/nixos
vgcreate vg /dev/mapper/nixos
lvcreate -L 8G -n swap vg
lvcreate -L 100G -n root vg
lvcreate -L 100G -n root vg
lvcreate -L 100%FREE -n home vg
mkswap -L swap /dev/vg/swap
mkfs.ext4 -L root /dev/vg/root
mkfs.ext4 -L home /dev/vg/home
mount /dev/disk/by-label/root /mnt/
mkdir -p /mnt/boot
mount /dev/disk/by-label/boot /mnt/boot/
swapon /dev/disk/by-label/swap
nixos-generate-config --root /mnt
nano /mnt/etc/nixos/configuration.nix
nixos-install
reboot
```

View File

@ -34,6 +34,10 @@ vim.opt.inccommand = "split"
-- completion -- completion
vim.opt.completeopt = "menu,menuone,noselect" vim.opt.completeopt = "menu,menuone,noselect"
-- folding
vim.opt.foldmethod = "expr"
vim.opt.foldexpr = 'nvim_treesitter#foldexpr()'
-- set cursorline in active window -- set cursorline in active window
vim.cmd([[ vim.cmd([[
augroup CursorLine augroup CursorLine
@ -51,4 +55,3 @@ vim.cmd([[
autocmd TermOpen * setlocal nonumber norelativenumber autocmd TermOpen * setlocal nonumber norelativenumber
augroup END augroup END
]]) ]])