add neovim
This commit is contained in:
parent
43139557af
commit
e313f19269
2 changed files with 32 additions and 1 deletions
|
@ -16,4 +16,19 @@ if ($PSVersionTable.PSVersion.Major -lt 7) {
|
|||
please install powershell 7 (Core)
|
||||
you can install via winget"
|
||||
exit 1
|
||||
}
|
||||
}
|
||||
|
||||
# check working directory
|
||||
if (!(
|
||||
(Test-Path bin) -and (Test-Path dotfiles)
|
||||
)) {
|
||||
Write-Warning -Message "wrong current path
|
||||
please execute at repo root"
|
||||
exit 1
|
||||
}
|
||||
|
||||
|
||||
# make symbolic links
|
||||
# neovim
|
||||
$neovim_directory
|
||||
New-Item -ItemType SymbolicLink -Path ~\AppData\Local\nvim\init.vim -Target (Resolve-Path .\dotfiles\neovim\init.vim) -Force
|
16
dotfiles/neovim/init.vim
Normal file
16
dotfiles/neovim/init.vim
Normal file
|
@ -0,0 +1,16 @@
|
|||
set number
|
||||
set relativenumber
|
||||
set tabstop=4
|
||||
set shiftwidth=4
|
||||
set autoindent
|
||||
set mouse=a
|
||||
colorscheme default
|
||||
|
||||
if has('win32')
|
||||
let &shell = executable('pwsh') ? 'pwsh' : 'powershell'
|
||||
let &shellcmdflag = '-NoLogo -NoProfile -ExecutionPolicy RemoteSigned -Command [Console]::InputEncoding=[Console]::OutputEncoding=[System.Text.Encoding]::UTF8;'
|
||||
let &shellredir = '-RedirectStandardOutput %s -NoNewWindow -Wait'
|
||||
let &shellpipe = '2>&1 | Out-File -Encoding UTF8 %s; exit $LastExitCode'
|
||||
set shellquote= shellxquote=
|
||||
|
||||
endif
|
Loading…
Reference in a new issue