Skip to content

Vim and Neovim

Tython ships small editor integration files.

Vim

tython lsp install vim

This installs:

  • filetype detection for *.ty
  • Vim syntax highlighting
  • classic Vim LSP glue

If you want to wire it by hand:

packadd lsp
packadd tython-vim
filetype plugin on

Neovim

tython lsp install nvim

Neovim uses builtin LSP config.

Override Command

let g:tython_lsp_cmd = ['tython', 'lsp', 'start']
vim.g.tython_lsp_cmd = { 'tython', 'lsp', 'start' }

Fast Check

Open a .ty file and confirm filetype:

:set filetype?