- Remove treesitternable
- Enable relativenumber - Added windows install script
This commit is contained in:
parent
c4363e4ad8
commit
9c613ad0ab
4 changed files with 39 additions and 117 deletions
9
windows-install/addNvimContextMenuEntry.reg
Normal file
9
windows-install/addNvimContextMenuEntry.reg
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
Windows Registry Editor Version 5.00
|
||||
|
||||
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\*\shell\Open In NVim]
|
||||
"icon"="C:\\Program Files\\Neovim\\bin\\nvim.ico"
|
||||
"position"="top"
|
||||
|
||||
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\*\shell\Open In NVim\command]
|
||||
@="C:\\Program Files\\Neovim\\bin\\nvim-qt.exe %1"
|
||||
|
||||
29
windows-install/neovim-install.ps1
Normal file
29
windows-install/neovim-install.ps1
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
# Neovim installation script
|
||||
$NvimConfigRepo = "https://github.com/kontr0x/my-kickstart.nvim.git"
|
||||
|
||||
## Install git and neovim via winget
|
||||
winget install -e --id Git.Git
|
||||
winget install -e --id Neovim.Neovim
|
||||
|
||||
$NvimConfigPath = (Join-Path -Path $env:LOCALAPPDATA -ChildPath "nvim")
|
||||
New-Item -ItemType Directory -Force -Path $NvimConfigPath
|
||||
|
||||
if((Get-ChildItem $NvimConfigPath -force | Select-Object -First 1 | Measure-Object).Count -eq 0){
|
||||
Write-Host "Cloning the repo" $NvimConfigRepo "into" $NvimConfigPath "!"
|
||||
Start-Process -FilePath "C:\Program Files\Git\bin\git.exe" -ArgumentList "clone $NvimConfigRepo $NvimConfigPath" -Wait -NoNewWindow
|
||||
}else{
|
||||
Write-Host "Directory not empty, assume that the repo is already cloned. Trying to update repo!"
|
||||
Start-Process -FilePath "C:\Program Files\Git\bin\git.exe" -ArgumentList "pull" -Wait -NoNewWindow
|
||||
}
|
||||
|
||||
## Adding powershell aliases for nvim
|
||||
New-Item -ItemType File -Path $profile
|
||||
|
||||
$NvimPowershellAliases = @"
|
||||
`n# NeoVim aliases for powershell
|
||||
Set-Alias -Name nvim -Value "C:\Program Files\Neovim\bin\nvim.exe"
|
||||
Set-Alias -Name vim -Value nvim
|
||||
Set-Alias -Name vi -Value nvim
|
||||
"@
|
||||
|
||||
$NvimPowershellAliases | Add-Content -Path $profile
|
||||
BIN
windows-install/nvim.ico
Normal file
BIN
windows-install/nvim.ico
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 66 KiB |
Loading…
Add table
Add a link
Reference in a new issue