npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@atoolz/kitty-lsp-toolkit

v0.1.1

Published

Language Server Protocol implementation for Kitty terminal configuration files

Readme


Kitty is a fast, feature-rich, GPU-based terminal emulator. This language server brings IntelliSense, validation, and documentation for kitty.conf to any editor that supports the Language Server Protocol (Neovim, Helix, Emacs, Zed, Sublime Text, and more).

Features

IntelliSense Completions

Context-aware autocompletion for all 300+ kitty options, directives, and actions.

  • Option names with descriptions, types, defaults, and snippet insertion
  • Enum values for options like cursor_shape, tab_bar_style, placement_strategy
  • Color values with hex presets from popular themes (Gruvbox, Catppuccin, Dracula, Solarized)
  • Map actions for map and mouse_map directives (80+ actions)
  • Directive snippets for map, mouse_map, include, globinclude, env

Hover Documentation

Hover over any option to see its description, type, default value, allowed values, and a link to the kitty docs.

Diagnostics and Validation

Real-time validation catches configuration errors as you type:

  • Unknown option names
  • Invalid boolean values (only yes/no are valid in kitty)
  • Invalid number values
  • Invalid enum values with the list of accepted alternatives
  • Invalid color formats

Installation

npm install -g kitty-lsp-toolkit

This installs the kitty-lsp binary globally.

Editor Setup

Neovim

vim.api.nvim_create_autocmd("FileType", {
  pattern = "kitty",
  callback = function()
    vim.lsp.start({
      name = "kitty-lsp",
      cmd = { "kitty-lsp" },
    })
  end,
})

To detect kitty.conf as filetype kitty, add to your init.lua:

vim.filetype.add({
  filename = {
    ["kitty.conf"] = "kitty",
  },
  pattern = {
    [".*/kitty/.*%.conf"] = "kitty",
  },
})

Helix

Add to ~/.config/helix/languages.toml:

[language-server.kitty-lsp]
command = "kitty-lsp"

[[language]]
name = "kitty"
scope = "source.kitty"
file-types = [{ glob = "kitty.conf" }, { glob = "*/kitty/*.conf" }]
language-servers = ["kitty-lsp"]

Emacs (lsp-mode)

(with-eval-after-load 'lsp-mode
  (add-to-list 'lsp-language-id-configuration '(".*kitty.*\\.conf$" . "kitty"))
  (lsp-register-client
   (make-lsp-client
    :new-connection (lsp-stdio-connection '("kitty-lsp"))
    :activation-fn (lsp-activate-on "kitty")
    :server-id 'kitty-lsp)))

Sublime Text (LSP package)

Add to LSP settings:

{
  "clients": {
    "kitty-lsp": {
      "command": ["kitty-lsp"],
      "selector": "source.kitty"
    }
  }
}

Zed

Add to your Zed settings:

{
  "lsp": {
    "kitty-lsp": {
      "binary": {
        "path": "kitty-lsp"
      }
    }
  }
}

Supported Categories

All major kitty configuration categories are covered:

Fonts Cursor Scrollback Mouse Performance Terminal Bell Window Layout Tab Bar Colors Advanced

VS Code

For VS Code, use the companion extension Kitty Toolkit which includes syntax highlighting, snippets, and all features from this LSP built-in.

Contributing

Contributions are welcome. Please open an issue or pull request on GitHub.

License

MIT