Update Nvim error handling

Now errors sent from Nvim are [code, message] arrays, this adapts the error handling code to account for that.