Giter VIP home page Giter VIP logo

Comments (12)

mattn avatar mattn commented on May 30, 2024 1

Right, now I pushed fixes in master branch.

from vim-lsp-settings.

mattn avatar mattn commented on May 30, 2024

What you get with?

:echo lsp_settings#exec_path("gopls")

from vim-lsp-settings.

habamax avatar habamax commented on May 30, 2024

:echo lsp_settings#exec_path("gopls")

Nothing.

It is installed with LspInstallServer to ~/vimfiles/lsp-servers/gopls/gopls.exe

relevant vimrc

let g:lsp_settings_servers_dir = fnamemodify($MYVIMRC, ":p:h") . "/lsp-servers/"
if !isdirectory(g:lsp_settings_servers_dir) | call mkdir(g:lsp_settings_servers_dir, "p") | endif

from vim-lsp-settings.

mattn avatar mattn commented on May 30, 2024

Hmm, I tried same configuration but :echo lsp_settings#exec_path("gopls") return path exists.

from vim-lsp-settings.

habamax avatar habamax commented on May 30, 2024

I have several language servers installed and they works too, except this one for go.

from vim-lsp-settings.

habamax avatar habamax commented on May 30, 2024
echo globpath('C:\Users\maksim.kim\vimfiles\lsp-servers\gopls', 'gopls.exe')

This can't find the executable (debugging now)

from vim-lsp-settings.

habamax avatar habamax commented on May 30, 2024
echo globpath('C:\Users\maksim.kim\vimfiles\lsp-servers\pyls-ms', 'pyls-ms.cmd')

This works

from vim-lsp-settings.

mattn avatar mattn commented on May 30, 2024

Ah, what is your &suffixes ?

from vim-lsp-settings.

habamax avatar habamax commented on May 30, 2024

Ah, what is your &suffixes ?

Yeah just found it!

echo globpath('C:\Users\maksim.kim\vimfiles\lsp-servers\gopls', 'gopls.exe', v:true)

works!

So &suffiexes is .bak,~,.o,.h,.info,.swp,.obj
and &wildignore is *.o,*.obj,*.bak,*.exe,*.swp,*.pdf,*.docx,*.xlsx,*.png,*.pyc

from vim-lsp-settings.

habamax avatar habamax commented on May 30, 2024

Ok, now echo lsp_settings#exec_path("gopls") returns path but LspStatus still emtpy and server doesn't work.

from vim-lsp-settings.

habamax avatar habamax commented on May 30, 2024

Aand it works! If you change all globpaths adding v:true as a last parameter!

from vim-lsp-settings.

habamax avatar habamax commented on May 30, 2024

It works! thanks!

from vim-lsp-settings.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.