From 567ab42a23e3c4cc77b1aca1789988e595aa75f4 Mon Sep 17 00:00:00 2001 From: ant Date: Thu, 10 Jul 2025 23:44:09 +0200 Subject: [PATCH 1/4] add tinymist to lsp server list --- lua/configs/lspconfig.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/lua/configs/lspconfig.lua b/lua/configs/lspconfig.lua index 2d762b4..d3459ca 100644 --- a/lua/configs/lspconfig.lua +++ b/lua/configs/lspconfig.lua @@ -42,6 +42,7 @@ local servers = { cmd = { "glslls", "--target-env", "opengl", "--stdin" }, }, qmlls = {}, + tinymist = {}, } local enabled = {} From a703a9798310882587a49efaef6c987e33551839 Mon Sep 17 00:00:00 2001 From: ant Date: Mon, 28 Jul 2025 17:31:49 +0200 Subject: [PATCH 2/4] add hsl (haskell language server) --- lua/configs/lspconfig.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/lua/configs/lspconfig.lua b/lua/configs/lspconfig.lua index d3459ca..e623c84 100644 --- a/lua/configs/lspconfig.lua +++ b/lua/configs/lspconfig.lua @@ -43,6 +43,7 @@ local servers = { }, qmlls = {}, tinymist = {}, + hls = {}, } local enabled = {} From 8b6e53e56c37e87692c4edb373278c7c71204922 Mon Sep 17 00:00:00 2001 From: ant Date: Mon, 28 Jul 2025 17:34:00 +0200 Subject: [PATCH 3/4] add telescope_hoogle --- lua/plugins.lua | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/lua/plugins.lua b/lua/plugins.lua index 43d8810..39ab572 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -569,6 +569,19 @@ local plugins = { vim.keymap.set({ "n", "v" }, "d", ":Linediff ", { desc = "Linediff" }) end }, + { + "luc-tielen/telescope_hoogle", + config = function () + local telescope = require('telescope') + -- telescope.setup { + -- -- opts... + -- } + telescope.load_extension('hoogle') + end, + dependencies = { + "nvim-telescope/telescope.nvim" + } + }, } return plugins From 276e72b06223526876a0fdda55477b4aa244e3f0 Mon Sep 17 00:00:00 2001 From: ant Date: Mon, 20 Oct 2025 13:46:54 +0200 Subject: [PATCH 4/4] fix lspconfig --- lua/configs/lspconfig.lua | 28 ++++++++++++++++------------ 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/lua/configs/lspconfig.lua b/lua/configs/lspconfig.lua index e623c84..036286c 100644 --- a/lua/configs/lspconfig.lua +++ b/lua/configs/lspconfig.lua @@ -44,23 +44,27 @@ local servers = { qmlls = {}, tinymist = {}, hls = {}, + c3_lsp = { + cmd = { "c3-lsp" }, + }, } local enabled = {} +-- for server, config in pairs(servers) do +-- local lsp = require("lspconfig")[server] +-- +-- local config_merged = vim.tbl_deep_extend("keep", config, default, lsp.document_config.default_config) +-- if config_merged.cmd ~= nil then +-- if vim.fn.executable(config_merged.cmd[1]) == 1 then +-- enabled[server] = config_merged +-- end +-- end +-- end + for server, config in pairs(servers) do - local lsp = require("lspconfig")[server] - - local config_merged = vim.tbl_deep_extend("keep", config, default, lsp.document_config.default_config) - if config_merged.cmd ~= nil then - if vim.fn.executable(config_merged.cmd[1]) == 1 then - enabled[server] = config_merged - end - end -end - -for server, config in pairs(enabled) do - vim.lsp.enable(server, config) + vim.lsp.config(server, config) + vim.lsp.enable(server) end