Typecheck.Nvim banner
jellydn jellydn

Typecheck.Nvim

Development community

Description

A Neovim plugin for seamless TypeScript type checking.

Installation

This entry records only its repository, not the path inside it, so there is no exact command to give. Open the source below and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

README

Welcome to typecheck.nvim 👋

A Neovim plugin for seamless TypeScript type checking.

[![IT Man - Revolutionize Your TypeScript with typecheck.nvim [Vietnamese]](https://i.ytimg.com/vi/XkH--D09ENY/hqdefault.jpg)](https://www.youtube.com/watch?v=XkH--D09ENY)

Introduction

`typecheck.nvim` is a Neovim plugin designed to enhance your TypeScript development workflow. It provides real-time type checking and integrates smoothly with Neovim's quickfix window, allowing you to easily navigate and fix type errors in your TypeScript projects.

Features

  • Asynchronous type checking: Run TypeScript compiler (tsc) checks without blocking the Neovim UI.
  • Integration with quickfix or trouble.nvim window: View and navigate TypeScript errors and warnings directly within Neovim.

Installation

Include `typecheck.nvim` in your plugin manager's configuration. For example, using [lazy.nvim](https://github.com/folke/lazy.nvim):

return {
  "jellydn/typecheck.nvim",
  dependencies = { "folke/trouble.nvim", dependencies = { "nvim-tree/nvim-web-devicons" } },
  ft = { "javascript", "javascriptreact", "json", "jsonc", "typescript", "typescriptreact" },
  opts = {
    debug = true,
    mode = "trouble", -- "quickfix" | "trouble"
  },
  keys = {
    {
      "ck",
      "Typecheck",
      desc = "Run Type Check",
    },
  }
}

Demo

Run `:Typecheck` to start type checking. The quickfix window will open if there are any errors or warnings.

[![Demo](https://i.gyazo.com/5009755ceb575afc78d7303983a2f7c0.gif)](https://gyazo.com/5009755ceb575afc78d7303983a2f7c0)

Integration with [trouble.nvim](https://github.com/folke/trouble.nvim)

[![Show on Trouble](https://i.gyazo.com/fc367f6cc005dd53f696c299e383318a.gif)](https://gyazo.com/fc367f6cc005dd53f696c299e383318a)

Roadmap

`typecheck.nvim` is continuously evolving, and there are exciting plans for future enhancements. Here's