Fix lsp#utils#path_to_uri for windows (#156)
Fix lsp#utils#path_to_uri for windows (#156)

* Fix lsp#utils#path_to_uri for windows

When encoding the buffer path on Windows the path_to_uri transformed the
C: to C%3A causing problems to LSP functions.

To solve this it as necessary to change the function encode_uri to
receive the start position to encode, so the functions that call it can
specify were to start the encoding.

* Fixed range intervals

When you specify the max on the function range that it will become
inclusive so you need to decrease one of the length since the arrays
starts at 0

prabirshrestha/vim-lsp,prabirshrestha/vim-lsp