vim.cmd("runtime vimrc") if (vim.fn.has 'win32' == 1) then require'lspconfig'.powershell_es.setup{ bundle_path = os.getenv("LOCALAPPDATA") .. '\\PowerShellEditorServices', shell = 'powershell.exe', } else require'lspconfig'.powershell_es.setup{ bundle_path = os.getenv("HOME") .. '/opt/PowerShellEditorServices', } end require'lspconfig'.gopls.setup{} vim.keymap.set("n", "gd", vim.lsp.buf.definition, { silent = true })