(feat) nvim brick

This commit is contained in:
b1ek 2024-02-13 19:05:07 +10:00
parent 05cf83c6f8
commit e7025fb68f
Signed by: blek
GPG Key ID: 14546221E3595D0C
2 changed files with 20 additions and 0 deletions

13
bricks/nvim.brick Normal file
View File

@ -0,0 +1,13 @@
#!/bin/sh
# nvim brick
# now first of all it isnt a "nvim package", it is actually a "nvim dotfiles" package
# which also installs nvim
pkgs() {
echo neovim
}
install() {
mkdir -p ~/.config/nvim
cp $BRICKS_DIR/nvim/init.vim ~/.config/nvim/init.vim
}

7
bricks/nvim/init.vim Normal file
View File

@ -0,0 +1,7 @@
:set number
:nmap <c-s> :w<CR>
:nmap <c-q> :q<CR>
:imap <c-s> <esc>:w<CR><INS>
:imap <c-q> <esc>:q<CR>