Started on NeoVim config and updated install script

This commit is contained in:
Luke Else 2023-03-01 22:02:02 +00:00
parent cee5d021c3
commit 927ed0ff5c
5 changed files with 53 additions and 3 deletions

View File

@ -0,0 +1,5 @@
local builtin = require('telescope.builtin')
vim.keymap.set('n', '<leader>ff', builtin.find_files, {})
vim.keymap.set('n', '<leader>fg', builtin.live_grep, {})
vim.keymap.set('n', '<leader>fb', builtin.buffers, {})
vim.keymap.set('n', '<leader>fh', builtin.help_tags, {})

1
nvim/init.lua Normal file
View File

@ -0,0 +1 @@
require("luke-else")

View File

@ -0,0 +1 @@
require("luke-else.packer")

View File

@ -0,0 +1,21 @@
vim.cmd [[packadd packer.nvim]]
return require('packer').startup(function(use)
-- Packer can manage itself
use 'wbthomason/packer.nvim'
use {
'nvim-telescope/telescope.nvim', tag = '0.1.0',
-- or , branch = '0.1.x',
requires = { {'nvim-lua/plenary.nvim'} }
}
use { -- Theme inspired by Atom
'navarasu/onedark.nvim',
priority = 1000,
config = function()
vim.cmd.colorscheme 'onedark'
end
}
end)

View File

@ -1,14 +1,24 @@
sudo pacman -Syu #!/bin/bash
sudo pacman -Sy rustup cmake neovim fish go xorg-xsetroot alacritty spotifyd neofetch discord vifm docker networkmanager-openvpn htop awesome-terminal-fonts ttf-jetbrains-mono gnome-keyring playerctl base-devel
# Update and install base packages
sudo pacman -Syu
sudo pacman -Sy xorg-xsetroot alacritty awesome-terminal-fonts ttf-jetbrains-mono gnome-keyring playerctl # DE Setup
sudo pacman -Sy neovim vifm neofetch fish htop networkmanager-openvpn unzip ripgrep # Utilities
sudo pacman -Sy base-devel rustup go cmake docker # Dev
sudo pacman -Sy spotifyd discord # Userspace
# Move relevant script and config files
mv ../.xinitrc ~/.xinitrc mv ../.xinitrc ~/.xinitrc
mkdir ~/.dwm mkdir ~/.dwm
mv ./autostart.sh ~/.dwm/autostart.sh mv ./autostart.sh ~/.dwm/autostart.sh
# Change Shell
chsh -s /usr/bin/fish chsh -s /usr/bin/fish
# Install rust (Used for Lemurs)
rustup install stable rustup install stable
# Install AUR
cd /opt cd /opt
sudo git clone https://aur.archlinux.org/yay.git sudo git clone https://aur.archlinux.org/yay.git
sudo chown -R luke-else:users ./yay sudo chown -R luke-else:users ./yay
@ -18,9 +28,11 @@ makepkg -si
cd ~ cd ~
# Install packages through AUR
yay vscode yay vscode
yay brave yay brave
# Install and Configure git elements
mkdir ~/git mkdir ~/git
cd ~/git cd ~/git
@ -32,24 +44,34 @@ git clone ssh://git@git.luke-else.co.uk:222/luke-else/dmenu.git
git clone ssh://git@git.luke-else.co.uk:222/luke-else/dwmblocks.git git clone ssh://git@git.luke-else.co.uk:222/luke-else/dwmblocks.git
git clone https://github.com/coastalwhite/lemurs git clone https://github.com/coastalwhite/lemurs
# Install DWM
cd dwm cd dwm
git checkout dwm-patched git checkout dwm-patched
sudo make install sudo make install
cd .. cd ..
# Install dmenu
cd dmenu cd dmenu
sudo make install sudo make install
cd .. cd ..
# Install DWMBlocks
cd dwmblocks cd dwmblocks
sudo cp ./statusbar/* /usr/local/bin/ sudo cp ./statusbar/* /usr/local/bin/
sudo make install sudo make install
cd .. cd ..
# Install Lemurs
cd lemurs cd lemurs
sudo chmod +x install.sh sudo chmod +x install.sh
./install.sh ./install.sh
cd .. cd ..
# Install Oh-My-FISH
cd ~ cd ~
curl https://raw.githubusercontent.com/oh-my-fish/oh-my-fish/master/bin/install | fish curl https://raw.githubusercontent.com/oh-my-fish/oh-my-fish/master/bin/install | fish
# Install Packer.nvim
git clone --depth 1 https://github.com/wbthomason/packer.nvim\
~/.local/share/nvim/site/pack/packer/start/packer.nvim