Comments (6)
I have a somewhat similar thing, Spawning language server with cmd: /home/user/.local/share/nvim/lsp servers/lua-language-server/bin/Linux/lua-language-server
failed.
Tho i reinstalled a lot of times, i followed the build instructions for sumneko lua language server. The directory 'Linux' does not exist
from nii-nvim.
yea, This seems to be an "issue" introduced my the sumneko maintainers. I currently have a fix on my local machine that you can apply. Expect that #25 should fix this issue as well.
Heres the patch:
diff --git a/lua/config/lsp/lua_lsp.lua b/lua/config/lsp/lua_lsp.lua
index bc2cb41..57acce9 100644
--- a/lua/config/lsp/lua_lsp.lua
+++ b/lua/config/lsp/lua_lsp.lua
@@ -1,5 +1,9 @@
+--[[
+ Setup script for the lua lsp server sumneko
+--]]
local fn = vim.fn
+-- check for the underlying operating system
local system_name
if fn.has('mac') == 1 then
system_name = 'macOS'
@@ -13,7 +17,17 @@ end
-- set the path to the sumneko installation (ABSOLUTE PATH)
local sumneko_install_path = fn.stdpath('data') .. '/lspservers/lua-language-server'
-local sumneko_binary = sumneko_install_path .. '/bin/' .. system_name .. '/lua-language-server'
+local pathcheck = sumneko_install_path .. '/bin/' .. system_name
+local sumneko_binary
+
+-- check of weird build directories
+if fn.isdirectory(pathcheck) > 0 then
+ -- set binary path to that with a system directory
+ sumneko_binary = sumneko_install_path .. '/bin/' .. system_name .. '/lua-language-server'
+else
+ -- set binary path to just the (oddly) bin directory
+ sumneko_binary = sumneko_install_path .. '/bin/lua-language-server'
+end
local runtime_path = vim.split(package.path, ';')
table.insert(runtime_path, 'lua/?.lua')
you can create a patch file in the root of the repo/config directory, and apply it with the git apply
cmd
from nii-nvim.
I have pushed my fixes to #25, (75d8f52) expect this it be merged into master in time soon.
For now if you want the bleeding changes, clone/pull/checkout from the dev branch.
from nii-nvim.
I've been experimenting with a lot of different nvim builds, and ended up breaking everything, i'll reinstall fully rn and then i'll answer how it went
from nii-nvim.
Ok, now i don't see this error, also there was a thing which told that something was moved (sorry i forgot what it was) but on the dev branch everything was fixed, awesome!
Also, i'm weebspirit, u might remember me on discord but i deleted my acc, and soon i will selfhost my own matrix homeserver, i'll message u then.
from nii-nvim.
cool @iambeingtracked I will probably be moving to host my projects at https://sr.ht in the near future, so watch out for that.
from nii-nvim.
Related Issues (12)
- On Documentation... HOT 1
- [ISSUE] issue while launching: use_internal_diff is now deprecated. HOT 5
- [DEPRECATION]: watch_index is deprecated.
- [ISSUE] completing lsp-snippets crashes autocompletion and/or language server HOT 1
- [ISSUE] nvim-tree no longer works with current config
- [DEPRECATION]: Nvimtree lsp_diagnostics is deprecated HOT 1
- Error during startup HOT 15
- [ISSUE]: :PackerSync broke neovim HOT 5
- Error detected while processing HOT 1
- im retarded HOT 1
- Autocompletion does not function properly HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nii-nvim.