return { { "mason-org/mason-lspconfig.nvim", opts = {}, dependencies = { { "mason-org/mason.nvim", opts = {} }, { "neovim/nvim-lspconfig" }, { "artemave/workspace-diagnostics.nvim" } }, config = function() require("mason-lspconfig").setup { automatic_enable = { exclude = {} } } vim.lsp.enable("gleam") vim.lsp.config("ts_ls", { on_attach = function(client, bufnr) require("workspace-diagnostics").populate_workspace_diagnostics(client, bufnr) client.server_capabilities.documentFormattingProvider = false end, }) end }, { "brenoprata10/nvim-highlight-colors", config = function() vim.opt.termguicolors = true require("nvim-highlight-colors").setup({}) end }, { "rachartier/tiny-code-action.nvim", dependencies = { { "nvim-lua/plenary.nvim" }, { "nvim-telescope/telescope.nvim" }, }, opts = { picker = "telescope", }, event = "LspAttach", keys = { { "ca", function() require("tiny-code-action").code_action({}) end, mode = { "n" }, desc = "Code Action", noremap = true, silent = true, } } }, { "saghen/blink.cmp", dependencies = { "rafamadriz/friendly-snippets", "brenoprata10/nvim-highlight-colors" }, sem_version = "1.*", ---@module 'blink.cmp' ---@type blink.cmp.config opts = { keymap = { preset = "super-tab", [""] = { function(cmp) if cmp.is_ghost_text_visible() then if cmp.snippet_active() then return cmp.accept() else return cmp.select_and_accept() end end end, "snippet_forward", "fallback" }, [""] = { function(cmp) if cmp.is_menu_visible() then return cmp.accept() end end, "fallback" }, }, completion = { documentation = { auto_show = true, auto_show_delay_ms = 500 }, menu = { enabled = true, auto_show = false, draw = { components = { -- customize the drawing of kind icons kind_icon = { text = function(ctx) -- default kind icon local icon = ctx.kind_icon -- if LSP source, check for color derived from documentation if ctx.item.source_name == "LSP" then local color_item = require("nvim-highlight-colors").format(ctx.item.documentation, { kind = ctx.kind }) if color_item and color_item.abbr ~= "" then icon = color_item.abbr end end return icon .. ctx.icon_gap end, highlight = function(ctx) -- default highlight group local highlight = "BlinkCmpKind" .. ctx.kind -- if LSP source, check for color derived from documentation if ctx.item.source_name == "LSP" then local color_item = require("nvim-highlight-colors").format(ctx.item.documentation, { kind = ctx.kind }) if color_item and color_item.abbr_hl_group then highlight = color_item.abbr_hl_group end end return highlight end, }, }, }, }, ghost_text = { enabled = true, show_with_menu = false } }, signature = { enabled = true, window = { show_documentation = false, } } }, opts_extend = { "sources.default" }, }, { "folke/trouble.nvim", opts = { win = { wo = { wrap = true, }, } }, -- for default options, refer to the configuration section for custom setup. cmd = "Trouble", keys = { { "xx", "Trouble diagnostics toggle", desc = "Diagnostics (Trouble)", }, { "xX", "Trouble diagnostics toggle filter.buf=0", desc = "Buffer Diagnostics (Trouble)", }, { "cs", "Trouble symbols toggle focus=false", desc = "Symbols (Trouble)", }, { "cl", "Trouble lsp toggle focus=false win.position=right", desc = "LSP Definitions / references / ... (Trouble)", }, { "xL", "Trouble loclist toggle", desc = "Location List (Trouble)", }, { "xQ", "Trouble qflist toggle", desc = "Quickfix List (Trouble)", }, }, }, { "artemave/workspace-diagnostics.nvim" } }