From 4fc9e7808551f23db29d55a4c0841cb5a65b93a7 Mon Sep 17 00:00:00 2001 From: Julio Biason Date: Sat, 12 Sep 2020 20:46:23 -0300 Subject: [PATCH 1/3] Couple more NeoVim settings --- nvim/init.vim | 30 ++++++++++++++++++++++++++++++ nvim/spell/pt.utf-8.add | 3 +++ nvim/spell/pt.utf-8.add.spl | Bin 0 -> 71 bytes 3 files changed, 33 insertions(+) create mode 100644 nvim/spell/pt.utf-8.add create mode 100644 nvim/spell/pt.utf-8.add.spl diff --git a/nvim/init.vim b/nvim/init.vim index 3b7b499..3c48b6e 100644 --- a/nvim/init.vim +++ b/nvim/init.vim @@ -32,3 +32,33 @@ augroup python au FileType python setlocal colorcolumn=80 " put a margin indicator augroup END " }}} + +" Rust {{{ +let g:rustfmt_autosave = 1 +" }}} + +" Markdown {{{ +augroup markdown + " This is a long abbreviation, but: + " Most of it is simply text, with linebreaks (). + " There is one thing to take care, though: is NOT . + " will call the function (strftime), which will insert the current + " date. + au FileType markdown iab headr +++title = ""date = =strftime('%Y-%m-%d')[taxonomies]tags = [""]+++ + " This abbreviation adds a modeline to set VIM to change the spell + " lang to portuguese. + au FileType markdown iab langpt + + au FileType markdown setlocal spell " enable spell checking + au FileType markdown setlocal textwidth=79 " max line size + au FileType markdown setlocal expandtab " use spaces instead of tabs +augroup END +" }}} + +" Shell {{{ +augroup shell + au FileType sh setlocal tabstop=4 " display tabs as 4 spaces + au FileType sh setlocal shiftwidth=4 " number of spaces to use for auto-indentation + au FileType sh setlocal softtabstop=4 " when deleting characters, consider 4 spaces as a tab +augroup END +" }}} diff --git a/nvim/spell/pt.utf-8.add b/nvim/spell/pt.utf-8.add new file mode 100644 index 0000000..f327779 --- /dev/null +++ b/nvim/spell/pt.utf-8.add @@ -0,0 +1,3 @@ +Movile +MeetUps +MeetUp diff --git a/nvim/spell/pt.utf-8.add.spl b/nvim/spell/pt.utf-8.add.spl new file mode 100644 index 0000000000000000000000000000000000000000..bd16a64ee454856ae9d0530ea4235471cad8174d GIT binary patch literal 71 zcmWIZ^erw(&B-zP&%nSS!8P|V2Gz*xqZ$(REaWMTp;5oGiQ RGC?Xrfhrh^8G&Lz0031^4R8Pe literal 0 HcmV?d00001 From 1123be36631a147fe42719728a5e3cdc107688a7 Mon Sep 17 00:00:00 2001 From: Julio Biason Date: Sat, 12 Sep 2020 20:46:35 -0300 Subject: [PATCH 2/3] Define NeoVim as the default editor --- bash/editor.bash | 1 + 1 file changed, 1 insertion(+) create mode 100644 bash/editor.bash diff --git a/bash/editor.bash b/bash/editor.bash new file mode 100644 index 0000000..2f9c223 --- /dev/null +++ b/bash/editor.bash @@ -0,0 +1 @@ +export EDITOR=nvim From cac7394d4c81f10a7fbc32b4b265572e5b30073b Mon Sep 17 00:00:00 2001 From: Julio Biason Date: Sat, 12 Sep 2020 20:47:10 -0300 Subject: [PATCH 3/3] Install NeoVim instead of Vim --- install.sh | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/install.sh b/install.sh index 1add5da..b9065e6 100755 --- a/install.sh +++ b/install.sh @@ -1,15 +1,5 @@ #!/bin/sh -vim() { - echo "Installing VIM configuration..." - ln -sf vim ~/.vim - echo "Initializing plugins..." - cd ~/.vim/ - git submodule init - git submodule update - cd - -} - starship() { echo "Installing Starship configuration..." ln -sf $PWD/starship/starship.toml ~/.config/starship.toml @@ -48,7 +38,16 @@ bat() { fi } -vim +nvim() { + echo "Installing NeoVim configuration..." + ln -sf ~/nvim ~/.config + cd ~/.config/nvim + git submodule init + git submodule update + cd - +} + +nvim starship kitty git