changed Files: .bash_extra

nvim/init.lua
scripts/setup_minimal.sh

Signed-off-by: Michael Grote <michael.grote@posteo.de>
This commit is contained in:
Michael Grote 2024-06-21 11:16:35 +02:00
parent 33d9422a59
commit 1b53da0091
3 changed files with 50 additions and 7 deletions

View file

@ -10,7 +10,7 @@ source "${HOME}/dotfiles/.bash_ps1"
### PATH ### PATH
# add my scripts to PATH # add my scripts to PATH
PATH=$PATH:"${HOME}/dotfiles/scripts" PATH=$PATH:"${HOME}/dotfiles/scripts:${HOME}/.bin/nvim-linux64/bin/"
### tmux auto attach ### tmux auto attach
# Check if the user ID is not 0 (root) # Check if the user ID is not 0 (root)

40
nvim/init.lua Normal file
View file

@ -0,0 +1,40 @@
-- Set <space> as the leader key
-- See `:help mapleader`
-- NOTE: Must happen before plugins are loaded (otherwise wrong leader will be used)
vim.g.mapleader = ' '
vim.g.maplocalleader = ' '
-- Set to true if you have a Nerd Font installed and selected in the terminal
vim.g.have_nerd_font = false
-- Make line numbers default
vim.opt.number = true
-- Enable mouse mode, can be useful for resizing splits for example!
vim.opt.mouse = 'a'
-- Case-insensitive searching UNLESS \C or one or more capital letters in the search term
vim.opt.ignorecase = true
vim.opt.smartcase = true
-- Preview substitutions live, as you type!
vim.opt.inccommand = 'split'
-- Minimal number of screen lines to keep above and below the cursor.
vim.opt.scrolloff = 10
-- Plugin-Manager
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
if not (vim.uv or vim.loop).fs_stat(lazypath) then
vim.fn.system({
"git",
"clone",
"--filter=blob:none",
"https://github.com/folke/lazy.nvim.git",
"--branch=stable", -- latest stable release
lazypath,
})
end
vim.opt.rtp:prepend(lazypath)
require("lazy").setup({
{
'nvim-telescope/telescope.nvim',
lazy = true,
dependencies = {
{'nvim-lua/plenary.nvim'},
}
},
})

View file

@ -1,17 +1,20 @@
#!/bin/bash #!/bin/bash
# Aufruf: wget https://git.mgrote.net/mg/dotfiles/raw/branch/master/scripts/setup_minimal.sh && bash ./setup_minimal.sh # Aufruf: wget https://git.mgrote.net/mg/dotfiles/raw/branch/master/scripts/setup_minimal.sh && bash ./setup_minimal.sh
cd ~ cd ~
sudo apt update && sudo apt install git tmux ripgrep ca-certificates
#neovim
mkdir -p ~/.bin
curl -LO https://github.com/neovim/neovim/releases/latest/download/nvim-linux64.tar.gz
sudo tar -C ~/.bin -xzf nvim-linux64.tar.gz
rm nvim-linux64.tar.gz
sudo apt update && sudo apt install git tmux vim ripgrep ca-certificates
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
git clone https://git.mgrote.net/mg/dotfiles ~/dotfiles git clone https://git.mgrote.net/mg/dotfiles ~/dotfiles
ln -s ~/dotfiles/.tmux.conf ~/.tmux.conf ln -s ~/dotfiles/.tmux.conf ~/.tmux.conf
ln -s ~/dotfiles/.vimrc ~/.vimrc
ln -s dotfiles/nvim/init.lua .config/nvim/init.lua
echo "source ~/dotfiles/.bash_extra" >> ~/.bashrc echo "source ~/dotfiles/.bash_extra" >> ~/.bashrc
vim +PluginInstall +qall
source ~/.bashrc source ~/.bashrc