From 30052098ebb0a1ffc6dd25e35efc3b96b1a09633 Mon Sep 17 00:00:00 2001 From: qwjyh Date: Wed, 15 Mar 2023 16:47:20 +0900 Subject: [PATCH] add: nvim: pwsh ls & documented some issues on windows --- README.md | 4 ++++ bin/install.ps1 | 8 ++++++++ dotfiles/neovim/init.lua | 4 ++++ 3 files changed, 16 insertions(+) diff --git a/README.md b/README.md index dc31dd4..f9837b0 100644 --- a/README.md +++ b/README.md @@ -34,6 +34,10 @@ my dotfiles 2. run install.fish # TODO +- Iron.nvim doesn't work for julia on Windows +- JET.nvim doesn't work on windows +- tree-sitter of lua doesn't work on windows + - checkhealth errors - make install script for Linux - add rc files of Manjaro - raspi dotfiles diff --git a/bin/install.ps1 b/bin/install.ps1 index 3311c6d..ef7f981 100644 --- a/bin/install.ps1 +++ b/bin/install.ps1 @@ -54,6 +54,14 @@ scoop import .\bin\windows\scoop_apps\scoop_minimal_apps.json New-Item -ItemType SymbolicLink -Path ~\AppData\Local\nvim\init.lua -Target (Resolve-Path .\dotfiles\neovim\init.lua) -Force New-Item -ItemType SymbolicLink -Path ~\AppData\Local\nvim\lua\lualine_setup.lua -Target (Resolve-Path .\dotfiles\neovim\lua\lualine_setup.lua) -Force New-Item -ItemType SymbolicLink -Path ~\AppData\Local\nvim\lua\lspconfig\server_configurations\satysfi_ls.lua -Target (Resolve-Path .\dotfiles\neovim\lua\lspconfig\server_configurations\satysfi_ls.lua) -Force +New-Item -ItemType SymbolicLink -Path ~\AppData\Local\nvim\lua\lspconfig\server_configurations\jetls.lua -Target (Resolve-Path .\dotfiles\neovim\lua\lspconfig\server_configurations\jetls.lua) -Force +mkdir $env:LOCALAPPDATA\nvim\after\ftplugin +New-Item -ItemType SymbolicLink -Path $env:LOCALAPPDATA\nvim\after\ftplugin\satysfi.lua -Target (Resolve-Path .\dotfiles\neovim\after\ftplugin\satysfi.lua) +New-Item -ItemType SymbolicLink -Path $env:LOCALAPPDATA\nvim\after\ftplugin\tex.lua -Target (Resolve-Path .\dotfiles\neovim\after\ftplugin\tex.lua) +mkdir $env:LOCALAPPDATA\nvim\after\queries\satysfi +Invoke-WebRequest -Uri "https://raw.githubusercontent.com/monaqa/tree-sitter-satysfi/master/queries/highlights.scm" -OutFile $env:LOCALAPPDATA\nvim\after\queries\satysfi\highlights.scm +Invoke-WebRequest -Uri "https://raw.githubusercontent.com/monaqa/tree-sitter-satysfi/master/queries/indents.scm" -OutFile $env:LOCALAPPDATA\nvim\after\queries\satysfi\indents.scm +Invoke-WebRequest -Uri "https://raw.githubusercontent.com/monaqa/tree-sitter-satysfi/master/queries/matchup.scm" -OutFile $env:LOCALAPPDATA\nvim\after\queries\satysfi\matchup.scm # pwsh New-Item -ItemType SymbolicLink -Path $PROFILE -Target (Resolve-Path .\dotfiles\pwsh\powershell_profile.ps1) -Force New-Item -ItemType SymbolicLink -Path ~\.config\powershell\chezmoi_completion.ps1 -Target (Resolve-Path .\dotfiles\pwsh\chezmoi_completion.ps1) -Force diff --git a/dotfiles/neovim/init.lua b/dotfiles/neovim/init.lua index 7d140a3..4c1cc43 100644 --- a/dotfiles/neovim/init.lua +++ b/dotfiles/neovim/init.lua @@ -433,6 +433,10 @@ lspconfig.bashls.setup { on_attach = on_attach, capabilities = capabilities, } +-- pwsh +lspconfig.powershell_es.setup { + bundle_path = '~/scoop/apps/powershell-editorservice/current/PowerShellEditorServices' +} -- python lspconfig.pyright.setup { on_attach = on_attach,