Closed fabfianda closed 2 years ago
I did a quick try with the default setup and it loaded hls
require("navigator").setup({})
I just tried that too and I still get 0 clients attached. If I switch to lsp-config it works right away.
What else could I try?
Thanks!
Please use following minium init_test.lua
and run
nvim -u init_test.lua haskell_file.hs
Check if hsl loaded or not, if not, please send me the log ( by default in $HOME/.cache/nvim/gh.log)
I was using this init_test when I test for hsl loading yesterday.
vim.cmd([[set runtimepath=$VIMRUNTIME]])
vim.cmd([[set packpath=/tmp/nvim/site]])
local Plugin_folder
local plugin_folder = function()
Plugin_folder = [[ray-x/]]
return Plugin_folder
end
local path = plugin_folder()
local package_root = "/tmp/nvim/site/pack"
local install_path = package_root .. "/packer/start/packer.nvim"
local function load_plugins()
print("load plugins")
require("packer").startup({
function(use)
use({ "wbthomason/packer.nvim" })
use({ "neovim/nvim-lspconfig" })
use({
path .. "navigator.lua",
requires = { "ray-x/guihua.lua", run = "cd lua/fzy && make" },
config = function()
require("navigator").setup({
debug = true,
lsp = {
format_on_save = true,
diagnostic_scrollbar_sign = { "โ", "โ", "โ" }, -- set to nil to disable, set to {'โ', '๏ฎ'} to enable diagnostic status in scroll bar area
},
})
end,
})
use({ "L3MON4D3/LuaSnip" })
use({
"hrsh7th/nvim-cmp",
requires = {
"hrsh7th/cmp-nvim-lsp",
"saadparwaiz1/cmp_luasnip",
},
config = function()
local cmp = require("cmp")
local luasnip = require("luasnip")
cmp.setup({
snippet = {
expand = function(args)
require("luasnip").lsp_expand(args.body)
end,
},
mapping = {
["<CR>"] = cmp.mapping.confirm({ select = true }),
["<Tab>"] = cmp.mapping(function(fallback)
if cmp.visible() then
cmp.confirm({ select = true })
elseif luasnip.expand_or_locally_jumpable() then
luasnip.expand_or_jump()
else
fallback()
end
end, { "i", "s" }),
},
sources = {
{ name = "nvim_lsp" },
{ name = "buffer" },
},
})
require("cmp").setup.cmdline(":", {
sources = {
{ name = "cmdline" },
},
})
require("cmp").setup.cmdline("/", {
sources = {
{ name = "buffer" },
},
})
end,
})
use({
"nvim-treesitter/nvim-treesitter",
config = function()
require("nvim-treesitter.configs").setup({
ensure_installed = { "python", "go", "javascript", "rust" },
highlight = { enable = true },
})
end,
run = ":TSUpdate",
})
use({
"ray-x/lsp_signature.nvim",
config = function()
local signature_config = {
log_path = vim.fn.expand("$HOME") .. "/tmp/sig.log",
debug = true,
verbose = true,
floating_window = false,
hint_enable = true,
handler_opts = {
border = "single",
},
max_width = 80,
}
require("lsp_signature").setup(signature_config)
end,
})
end,
config = {
package_root = package_root,
compile_path = install_path .. "/plugin/packer_compiled.lua",
},
})
end
if vim.fn.isdirectory(install_path) == 0 then
vim.fn.system({
"git",
"clone",
"https://github.com/wbthomason/packer.nvim",
install_path,
})
load_plugins()
require("packer").sync()
else
load_plugins()
end
vim.cmd("colorscheme murphy")
Unfortunately that didn't work either, it does work for Js and Vue but when I open Haskell files I get 0 clients attached.
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:699: nil filetype, callback
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:815: file:///home/fabrizio/Dev/Haskell/ref/optics/src/Lib.hs
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:769: {
border = "single",
bufnr = 1,
combined_attach = "both",
debug = true,
default_mapping = true,
height = 0.38,
icons = {
code_action_icon = "๐",
code_lens_action_icon = "๐",
diagnostic_err = "๐",
diagnostic_file = "๐",
diagnostic_head = "๐",
diagnostic_head_description = "๐น",
diagnostic_head_severity_1 = "๐ฒ",
diagnostic_head_severity_2 = "โฃ๏ธ",
diagnostic_head_severity_3 = "๐",
diagnostic_hint = "๐",
diagnostic_info = "๐ฉ",
diagnostic_virtual_text = "๐ฆ",
diagnostic_warn = "๐",
icons = true,
match_kinds = {
associated = "๐ค",
field = "๐",
function = "๏ ",
method = "ฦ ",
namespace = "๐",
parameter = "๏
",
type = "๏ ",
var = "๎ "
},
treesitter_defult = "๐ฒ",
value_changed = "๐",
value_definition = "๐ถ๐ก"
},
keymaps = {},
lines_show_prompt = 10,
loaded = true,
lsp = {
code_action = {
enable = true,
sign = true,
sign_priority = 40,
virtual_text = true,
virtual_text_icon = true
},
code_lens_action = {
enable = true,
sign = true,
sign_priority = 40,
virtual_text = true,
virtual_text_icon = true
},
diagnostic = {
severity_sort = {
reverse = true
},
underline = true,
update_in_insert = false,
virtual_text = {
prefix = "๐ฆ",
source = true,
spacing = 3
}
},
diagnostic_load_files = false,
diagnostic_scrollbar_sign = { "โ", "โ", "โ" },
diagnostic_update_in_insert = false,
diagnostic_virtual_text = true,
disable_format_cap = {},
disable_lsp = {},
disply_diagnostic_qf = true,
format_on_save = true,
sumneko_lua = {},
tsserver = {}
},
lsp_installer = false,
lsp_signature_help = true,
on_attach = <function 1>,
preview_height = 0.38,
preview_lines = 40,
preview_lines_before = 5,
signature_help_cfg = {
debug = false
},
transparency = 50,
treesitter_analysis = true,
ts_fold = false,
width = 0.62
}
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:772: loading for ft haskell file:///home/fabrizio/Dev/Haskell/ref/optics/src/Lib.hs {
border = "single",
bufnr = 1,
combined_attach = "both",
debug = true,
default_mapping = true,
height = 0.38,
icons = {
code_action_icon = "๐",
code_lens_action_icon = "๐",
diagnostic_err = "๐",
diagnostic_file = "๐",
diagnostic_head = "๐",
diagnostic_head_description = "๐น",
diagnostic_head_severity_1 = "๐ฒ",
diagnostic_head_severity_2 = "โฃ๏ธ",
diagnostic_head_severity_3 = "๐",
diagnostic_hint = "๐",
diagnostic_info = "๐ฉ",
diagnostic_virtual_text = "๐ฆ",
diagnostic_warn = "๐",
icons = true,
match_kinds = {
associated = "๐ค",
field = "๐",
function = "๏ ",
method = "ฦ ",
namespace = "๐",
parameter = "๏
",
type = "๏ ",
var = "๎ "
},
treesitter_defult = "๐ฒ",
value_changed = "๐",
value_definition = "๐ถ๐ก"
},
keymaps = {},
lines_show_prompt = 10,
loaded = true,
lsp = {
code_action = {
enable = true,
sign = true,
sign_priority = 40,
virtual_text = true,
virtual_text_icon = true
},
code_lens_action = {
enable = true,
sign = true,
sign_priority = 40,
virtual_text = true,
virtual_text_icon = true
},
diagnostic = {
severity_sort = {
reverse = true
},
underline = true,
update_in_insert = false,
virtual_text = {
prefix = "๐ฆ",
source = true,
spacing = 3
}
},
diagnostic_load_files = false,
diagnostic_scrollbar_sign = { "โ", "โ", "โ" },
diagnostic_update_in_insert = false,
diagnostic_virtual_text = true,
disable_format_cap = {},
disable_lsp = {},
disply_diagnostic_qf = true,
format_on_save = true,
sumneko_lua = {},
tsserver = {}
},
lsp_installer = false,
lsp_signature_help = true,
on_attach = <function 1>,
preview_height = 0.38,
preview_lines = 40,
preview_lines_before = 5,
signature_help_cfg = {
debug = false
},
transparency = 50,
treesitter_analysis = true,
ts_fold = false,
width = 0.62
}
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:505: angularls
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:505: gopls
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:505: tsserver
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:505: flow
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:505: bashls
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:505: dockerls
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:505: julials
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:505: pylsp
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:505: pyright
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:505: jedi_language_server
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:505: jdtls
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:505: sumneko_lua
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:505: vimls
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:505: html
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:505: jsonls
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:505: solargraph
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:505: cssls
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:505: yamlls
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:505: clangd
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:505: ccls
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:505: sqls
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:505: denols
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:505: graphql
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:505: dartls
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:505: dotls
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:505: kotlin_language_server
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:505: nimls
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:505: intelephense
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:505: vuels
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:505: phpactor
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:505: omnisharp
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:505: r_language_server
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:505: rust_analyzer
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:505: terraformls
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:505: svelte
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:505: texlab
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:505: clojure_lsp
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:505: elixirls
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:505: sourcekit
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:505: fsautocomplete
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:505: vls
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:505: hls
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:536: hls {}
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:612: loading hls name hls has lspinst false
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:388: haskell hls {}
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:431: lspconfig setup
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:435: hls loading for haskell
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:505: tflint
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:505: terraform_lsp
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:815: file:///home/fabrizio/Dev/Haskell/ref/optics/src/Lib.hs
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:769: {
border = "single",
bufnr = 1,
combined_attach = "both",
debug = true,
default_mapping = true,
height = 0.38,
icons = {
code_action_icon = "๐",
code_lens_action_icon = "๐",
diagnostic_err = "๐",
diagnostic_file = "๐",
diagnostic_head = "๐",
diagnostic_head_description = "๐น",
diagnostic_head_severity_1 = "๐ฒ",
diagnostic_head_severity_2 = "โฃ๏ธ",
diagnostic_head_severity_3 = "๐",
diagnostic_hint = "๐",
diagnostic_info = "๐ฉ",
diagnostic_virtual_text = "๐ฆ",
diagnostic_warn = "๐",
icons = true,
match_kinds = {
associated = "๐ค",
field = "๐",
function = "๏ ",
method = "ฦ ",
namespace = "๐",
parameter = "๏
",
type = "๏ ",
var = "๎ "
},
treesitter_defult = "๐ฒ",
value_changed = "๐",
value_definition = "๐ถ๐ก"
},
keymaps = {},
lines_show_prompt = 10,
loaded = true,
lsp = {
code_action = {
enable = true,
sign = true,
sign_priority = 40,
virtual_text = true,
virtual_text_icon = true
},
code_lens_action = {
enable = true,
sign = true,
sign_priority = 40,
virtual_text = true,
virtual_text_icon = true
},
diagnostic = {
severity_sort = {
reverse = true
},
underline = true,
update_in_insert = false,
virtual_text = {
prefix = "๐ฆ",
source = true,
spacing = 3
}
},
diagnostic_load_files = false,
diagnostic_scrollbar_sign = { "โ", "โ", "โ" },
diagnostic_update_in_insert = false,
diagnostic_virtual_text = true,
disable_format_cap = {},
disable_lsp = {},
disply_diagnostic_qf = true,
format_on_save = true,
sumneko_lua = {},
tsserver = {}
},
lsp_installer = false,
lsp_signature_help = true,
on_attach = <function 1>,
preview_height = 0.38,
preview_lines = 40,
preview_lines_before = 5,
signature_help_cfg = {
debug = false
},
transparency = 50,
treesitter_analysis = true,
ts_fold = false,
width = 0.62
}
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:772: loading for ft haskell file:///home/fabrizio/Dev/Haskell/ref/optics/src/Lib.hs {
border = "single",
bufnr = 1,
combined_attach = "both",
debug = true,
default_mapping = true,
height = 0.38,
icons = {
code_action_icon = "๐",
code_lens_action_icon = "๐",
diagnostic_err = "๐",
diagnostic_file = "๐",
diagnostic_head = "๐",
diagnostic_head_description = "๐น",
diagnostic_head_severity_1 = "๐ฒ",
diagnostic_head_severity_2 = "โฃ๏ธ",
diagnostic_head_severity_3 = "๐",
diagnostic_hint = "๐",
diagnostic_info = "๐ฉ",
diagnostic_virtual_text = "๐ฆ",
diagnostic_warn = "๐",
icons = true,
match_kinds = {
associated = "๐ค",
field = "๐",
function = "๏ ",
method = "ฦ ",
namespace = "๐",
parameter = "๏
",
type = "๏ ",
var = "๎ "
},
treesitter_defult = "๐ฒ",
value_changed = "๐",
value_definition = "๐ถ๐ก"
},
keymaps = {},
lines_show_prompt = 10,
loaded = true,
lsp = {
code_action = {
enable = true,
sign = true,
sign_priority = 40,
virtual_text = true,
virtual_text_icon = true
},
code_lens_action = {
enable = true,
sign = true,
sign_priority = 40,
virtual_text = true,
virtual_text_icon = true
},
diagnostic = {
severity_sort = {
reverse = true
},
underline = true,
update_in_insert = false,
virtual_text = {
prefix = "๐ฆ",
source = true,
spacing = 3
}
},
diagnostic_load_files = false,
diagnostic_scrollbar_sign = { "โ", "โ", "โ" },
diagnostic_update_in_insert = false,
diagnostic_virtual_text = true,
disable_format_cap = {},
disable_lsp = {},
disply_diagnostic_qf = true,
format_on_save = true,
sumneko_lua = {},
tsserver = {}
},
lsp_installer = false,
lsp_signature_help = true,
on_attach = <function 1>,
preview_height = 0.38,
preview_lines = 40,
preview_lines_before = 5,
signature_help_cfg = {
debug = false
},
transparency = 50,
treesitter_analysis = true,
ts_fold = false,
width = 0.62
}
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:505: angularls
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:505: gopls
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:505: tsserver
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:505: flow
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:505: bashls
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:505: dockerls
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:505: julials
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:505: pylsp
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:505: pyright
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:505: jedi_language_server
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:505: jdtls
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:505: sumneko_lua
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:505: vimls
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:505: html
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:505: jsonls
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:505: solargraph
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:505: cssls
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:505: yamlls
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:505: clangd
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:505: ccls
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:505: sqls
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:505: denols
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:505: graphql
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:505: dartls
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:505: dotls
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:505: kotlin_language_server
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:505: nimls
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:505: intelephense
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:505: vuels
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:505: phpactor
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:505: omnisharp
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:505: r_language_server
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:505: rust_analyzer
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:505: terraformls
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:505: svelte
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:505: texlab
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:505: clojure_lsp
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:505: elixirls
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:505: sourcekit
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:505: fsautocomplete
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:505: vls
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:496: client loaded hls
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:505: hls
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:536: hls {}
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:612: loading hls name hls has lspinst false
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:388: haskell hls {}
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:431: lspconfig setup
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:435: hls loading for haskell
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:505: tflint
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:505: terraform_lsp
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:711: defer_fn hs
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:769: {
border = "single",
combined_attach = "both",
debug = true,
default_mapping = true,
height = 0.38,
icons = {
code_action_icon = "๐",
code_lens_action_icon = "๐",
diagnostic_err = "๐",
diagnostic_file = "๐",
diagnostic_head = "๐",
diagnostic_head_description = "๐น",
diagnostic_head_severity_1 = "๐ฒ",
diagnostic_head_severity_2 = "โฃ๏ธ",
diagnostic_head_severity_3 = "๐",
diagnostic_hint = "๐",
diagnostic_info = "๐ฉ",
diagnostic_virtual_text = "๐ฆ",
diagnostic_warn = "๐",
icons = true,
match_kinds = {
associated = "๐ค",
field = "๐",
function = "๏ ",
method = "ฦ ",
namespace = "๐",
parameter = "๏
",
type = "๏ ",
var = "๎ "
},
treesitter_defult = "๐ฒ",
value_changed = "๐",
value_definition = "๐ถ๐ก"
},
keymaps = {},
lines_show_prompt = 10,
loaded = true,
lsp = {
code_action = {
enable = true,
sign = true,
sign_priority = 40,
virtual_text = true,
virtual_text_icon = true
},
code_lens_action = {
enable = true,
sign = true,
sign_priority = 40,
virtual_text = true,
virtual_text_icon = true
},
diagnostic = {
severity_sort = {
reverse = true
},
underline = true,
update_in_insert = false,
virtual_text = {
source = true,
spacing = 3
}
},
diagnostic_load_files = false,
diagnostic_scrollbar_sign = { "โ", "โ", "โ" },
diagnostic_update_in_insert = false,
diagnostic_virtual_text = true,
disable_format_cap = {},
disable_lsp = {},
disply_diagnostic_qf = true,
format_on_save = true,
servers = {},
sumneko_lua = {},
tsserver = {}
},
lsp_installer = false,
lsp_signature_help = true,
on_attach = <function 1>,
preview_height = 0.38,
preview_lines = 40,
preview_lines_before = 5,
signature_help_cfg = {
debug = false
},
transparency = 50,
treesitter_analysis = true,
ts_fold = false,
width = 0.62
}
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:772: loading for ft haskell file:///home/fabrizio/Dev/Haskell/ref/optics/src/Lib.hs {
border = "single",
combined_attach = "both",
debug = true,
default_mapping = true,
height = 0.38,
icons = {
code_action_icon = "๐",
code_lens_action_icon = "๐",
diagnostic_err = "๐",
diagnostic_file = "๐",
diagnostic_head = "๐",
diagnostic_head_description = "๐น",
diagnostic_head_severity_1 = "๐ฒ",
diagnostic_head_severity_2 = "โฃ๏ธ",
diagnostic_head_severity_3 = "๐",
diagnostic_hint = "๐",
diagnostic_info = "๐ฉ",
diagnostic_virtual_text = "๐ฆ",
diagnostic_warn = "๐",
icons = true,
match_kinds = {
associated = "๐ค",
field = "๐",
function = "๏ ",
method = "ฦ ",
namespace = "๐",
parameter = "๏
",
type = "๏ ",
var = "๎ "
},
treesitter_defult = "๐ฒ",
value_changed = "๐",
value_definition = "๐ถ๐ก"
},
keymaps = {},
lines_show_prompt = 10,
loaded = true,
lsp = {
code_action = {
enable = true,
sign = true,
sign_priority = 40,
virtual_text = true,
virtual_text_icon = true
},
code_lens_action = {
enable = true,
sign = true,
sign_priority = 40,
virtual_text = true,
virtual_text_icon = true
},
diagnostic = {
severity_sort = {
reverse = true
},
underline = true,
update_in_insert = false,
virtual_text = {
source = true,
spacing = 3
}
},
diagnostic_load_files = false,
diagnostic_scrollbar_sign = { "โ", "โ", "โ" },
diagnostic_update_in_insert = false,
diagnostic_virtual_text = true,
disable_format_cap = {},
disable_lsp = {},
disply_diagnostic_qf = true,
format_on_save = true,
servers = {},
sumneko_lua = {},
tsserver = {}
},
lsp_installer = false,
lsp_signature_help = true,
on_attach = <function 1>,
preview_height = 0.38,
preview_lines = 40,
preview_lines_before = 5,
signature_help_cfg = {
debug = false
},
transparency = 50,
treesitter_analysis = true,
ts_fold = false,
width = 0.62
}
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:505: angularls
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:505: gopls
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:505: tsserver
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:505: flow
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:505: bashls
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:505: dockerls
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:505: julials
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:505: pylsp
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:505: pyright
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:505: jedi_language_server
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:505: jdtls
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:505: sumneko_lua
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:505: vimls
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:505: html
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:505: jsonls
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:505: solargraph
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:505: cssls
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:505: yamlls
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:505: clangd
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:505: ccls
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:505: sqls
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:505: denols
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:505: graphql
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:505: dartls
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:505: dotls
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:505: kotlin_language_server
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:505: nimls
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:505: intelephense
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:505: vuels
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:505: phpactor
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:505: omnisharp
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:505: r_language_server
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:505: rust_analyzer
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:505: terraformls
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:505: svelte
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:505: texlab
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:505: clojure_lsp
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:505: elixirls
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:505: sourcekit
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:505: fsautocomplete
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:505: vls
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:496: client loaded hls
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:505: hls
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:536: hls {}
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:612: loading hls name hls has lspinst false
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:388: haskell hls {}
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:431: lspconfig setup
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:435: hls loading for haskell
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:505: tflint
[INFO Mon 09 May 2022 07:39:28 AM CEST] .../start/navigator.lua/lua/navigator/lspclient/clients.lua:505: terraform_lsp
From what I saw in the log. The script is trying to load Haskell hls.
What is your language server version and installation path? Is it in $PATH?
When you trying to load with
require("navigator").setup` { lsp={
hls = {
cmd = {"haskell-language-server-wrapper", "--lsp"},
filetypes = {"haskell", "lhaskell"},
settings = {
languageServerHaskell = {
formattingProvider = "stylish-haskell"
}
}
}
} }
It is nothing but default config.
If you run lua require'lspconfig'.hls.setup{}
Will it load hls?
Would be great to provide a working lspconfig as well.
that worked! so what's next step? :)
Do you mean default lspconfig lua require'lspconfig'.hls.setup{}
works fine? But if you only have following code it wont work?
require("navigator").setup` { lsp={
hls = {
cmd = {"haskell-language-server-wrapper", "--lsp"},
filetypes = {"haskell", "lhaskell"},
settings = {
languageServerHaskell = {
formattingProvider = "stylish-haskell"
}
}
}
} }
Yes, the code above does not attach the client. I need to run the lua require within nVim.
On Mon, May 9, 2022, 15:21 rayx @.***> wrote:
Do you mean default lspconfig lua require'lspconfig'.hls.setup{} works fine? But if you only have following code it wont work?
require("navigator").setup` { lsp={ hls = { cmd = {"haskell-language-server-wrapper", "--lsp"}, filetypes = {"haskell", "lhaskell"}, settings = { languageServerHaskell = { formattingProvider = "stylish-haskell" } } } } }
โ Reply to this email directly, view it on GitHub https://github.com/ray-x/navigator.lua/issues/186#issuecomment-1121095089, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACDJRJBOY75W5BKAMHPANTVJEGMJANCNFSM5VLPOLAQ . You are receiving this because you authored the thread.Message ID: @.***>
I am using haskell-language-server version: 1.3.0.0 (GHC: 9.0.2)
for testing on linux. Not sure if that makes any difference.
That doesn't make any difference. Thanks so much for your help, I'll figure it out somehow.
On Tue, May 10, 2022, 15:34 rayx @.***> wrote:
I am using haskell-language-server version: 1.3.0.0 (GHC: 9.0.2) for testing on linux. Not sure if that makes any difference.
โ Reply to this email directly, view it on GitHub https://github.com/ray-x/navigator.lua/issues/186#issuecomment-1122402929, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACDJRMKI7AGJPQQJJYBD7LVJJQU5ANCNFSM5VLPOLAQ . You are receiving this because you authored the thread.Message ID: @.***>
Hi, I use HLS (Haskell LSP server) with LSPConfig with no issues at all.
When I install navigator though, everything works but that.
I added it to the setup file too with no success:
This is what LspInfo returns: