2024-01-26 11:13:12 +00:00
|
|
|
vim.cmd("runtime vimrc")
|
2024-11-06 09:53:41 +00:00
|
|
|
|
2024-11-08 11:15:50 +00:00
|
|
|
if (vim.fn.has 'win32' == 1) then
|
2024-11-08 11:00:19 +00:00
|
|
|
require'lspconfig'.powershell_es.setup{
|
|
|
|
bundle_path = os.getenv("LOCALAPPDATA") .. '\\PowerShellEditorServices',
|
2024-11-08 11:11:15 +00:00
|
|
|
shell = 'powershell.exe',
|
2024-11-08 11:00:19 +00:00
|
|
|
}
|
|
|
|
else
|
|
|
|
require'lspconfig'.powershell_es.setup{
|
|
|
|
bundle_path = os.getenv("HOME") .. '/opt/PowerShellEditorServices',
|
|
|
|
}
|
|
|
|
end
|
2024-11-09 20:48:25 +00:00
|
|
|
|
|
|
|
require'lspconfig'.gopls.setup{}
|
2024-12-04 11:57:12 +00:00
|
|
|
|
|
|
|
vim.keymap.set("n", "gd", vim.lsp.buf.definition, { silent = true })
|