Something went wrong. Try again.
My Neovim config
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194return { { "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 = { { "<leader>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", ["<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" }, ["<CR>"] = { 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 = { { "<leader>xx", "<cmd>Trouble diagnostics toggle<cr>", desc = "Diagnostics (Trouble)", }, { "<leader>xX", "<cmd>Trouble diagnostics toggle filter.buf=0<cr>", desc = "Buffer Diagnostics (Trouble)", }, { "<leader>cs", "<cmd>Trouble symbols toggle focus=false<cr>", desc = "Symbols (Trouble)", }, { "<leader>cl", "<cmd>Trouble lsp toggle focus=false win.position=right<cr>", desc = "LSP Definitions / references / ... (Trouble)", }, { "<leader>xL", "<cmd>Trouble loclist toggle<cr>", desc = "Location List (Trouble)", }, { "<leader>xQ", "<cmd>Trouble qflist toggle<cr>", desc = "Quickfix List (Trouble)", }, }, },
{ "artemave/workspace-diagnostics.nvim" }}