Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
msp301 committed May 16, 2024
2 parents cbf79eb + cffb4fb commit 3b909d3
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 18 deletions.
20 changes: 4 additions & 16 deletions ansible/playbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
become_user: root
package: name={{ item }} state=latest
with_items:
- "{{ bat_package }}"
- "{{ build_essential_package }}"
- "{{ cmake_package }}"
- "{{ curl_package }}"
Expand Down Expand Up @@ -41,23 +42,10 @@

- name: Symlink Neovim config
file:
src={{ repo_dir }}/init.vim
dest=~/.config/nvim/init.vim
src={{ repo_dir }}/nvim
dest=~/.config/nvim
state=link

- name: Create vim-plug directory
file: path=~/.local/share/nvim/site/autoload state=directory

- name: Install vim-plug
copy:
src={{ repo_dir }}/vim-plug/plug.vim
dest=~/.local/share/nvim/site/autoload/plug.vim

- name: Install Neovim plugins
command: nvim --headless +PlugInstall +qall

- name: Install Neovim plugins
command: nvim --headless +MasonUpdate +qall
force=yes

- name: Create Vim backup directory
file: path=~/.vim-backupsdir state=directory
Expand Down
1 change: 1 addition & 0 deletions ansible/vars/Archlinux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#
# Arch Linux / Manjaro package names
#
bat_package: "bat"
build_essential_package: "base-devel"
cmake_package: "cmake"
curl_package: "curl"
Expand Down
1 change: 1 addition & 0 deletions ansible/vars/Debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#
# Debian package names
#
bat_package: "bat"
build_essential_package: "build-essential"
cmake_package: "cmake"
curl_package: "curl"
Expand Down
4 changes: 2 additions & 2 deletions nvim/lua/general.lua
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ opt.scrolloff = 8
-- Provide access to system clipboard
opt.clipboard = "unnamedplus"

opt.backupdir = "~/.vim-backupsdir"
opt.dir = "~/.vim-swapdir"
opt.backupdir = { vim.fn.expand("~/.vim-backupsdir") }
opt.dir = { vim.fn.expand("~/.vim-swapdir") }

-- Search Settings
opt.incsearch = true
Expand Down
3 changes: 3 additions & 0 deletions setup.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ Symlink "$PSScriptRoot\nvim" "$env:LOCALAPPDATA\nvim";
Symlink "$PSScriptRoot\ideavimrc" "$env:USERPROFILE\.ideavimrc"

ChocoInstall "7zip" "7z"
ChocoInstall "bat"
ChocoInstall "curl"
ChocoInstall "fd"
ChocoInstall "fzf"
Expand All @@ -69,5 +70,7 @@ ChocoInstall "pwsh"
ChocoInstall "ripgrep" "rg"
ChocoInstall "zig"

git config --global push.autoSetupRemote true

Write-Host "Done"

0 comments on commit 3b909d3

Please sign in to comment.