Powershell LSP Support

master
Fabian Felix Selbach 2 years ago
parent 9557a50558
commit 5e2da53807
  1. 11
      init.vim

@ -6,12 +6,15 @@ set spr sb
set pb=12 winbl=12
set fcs=eob:\ list lcs=tab:\│\ ,trail:⎵
" on windows, prevents hanging! on unix, get rid of this.
" nmap <C-z> <Nop>
nmap <C-z> <Nop>
let g:mapleader = " "
set mouse=a
set number
autocmd FileType yaml setlocal ts=2 sw=2
autocmd FileType yaml.ansible setlocal ts=2 sw=2
autocmd FileType ps1 LspStart
" enable Escape key to return to normal mode in terminal window
tnoremap <Esc> <C-\><C-n>
function s:InitLSP()
lua <<EOF
@ -63,6 +66,12 @@ lua <<EOF
flags = {debounce_text_changes = 500}
}
end
lspconfig['powershell_es'].setup {
bundle_path = 'C:/Powershell_ES/PowerShellEditorServices',
capabilities = caps,
on_attach = onattach,
flags = {debounce_text_changes = 500}
}
EOF
endfunction

Loading…
Cancel
Save