-- Language-specific plugins. Servers, formatters and linters live in core/lsp.lua, -- plugins/format.lua and plugins/lint.lua; Nix installs the binaries. local full = vim.g.profile == "full" local go_keys = { { "cA", "GoTestsAll", "Generate all tests" }, { "cC", "GoCmt", "Generate comment" }, { "cD", ":GoGet ", "Get dependency" }, { "cE", "GoTestsExp", "Generate exported tests" }, { "cg", "GoGenerate %", "Generate current file" }, { "cI", ":GoImpl ", "Implement interface" }, { "cM", ":GoMod ", "Run module command" }, { "cN", "GoNew", "Generate constructor" }, { "cR", "GoTagRm", "Remove tags" }, { "cS", "GoTagAdd json", "Add JSON tags" }, { "cT", "GoTestAdd", "Generate test" }, { "cW", "GoWork sync", "Sync workspace" }, { "cY", "GoTagAdd yaml", "Add YAML tags" }, { "ce", "GoIfErr", "Generate if err" }, { "cm", "GoMod tidy", "Tidy module" }, } return { { "chomosuke/typst-preview.nvim", cond = full, ft = "typst", version = "1.*", opts = { port = 8000, dependencies_bin = { tinymist = "tinymist", websocat = "websocat" }, }, }, { "olexsmir/gopher.nvim", cond = full, ft = "go", dependencies = { "nvim-lua/plenary.nvim", "nvim-treesitter/nvim-treesitter" }, opts = {}, keys = vim.tbl_map(function(k) return { k[1], k[2], desc = "Go: " .. k[3], ft = "go" } end, go_keys), }, { "dmmulroy/ts-error-translator.nvim", cond = full, ft = { "typescript", "typescriptreact" }, opts = {}, }, }