Skip to content

sigmaSd/nvim-types

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nvim Types

This npm package provide types that you can use with https://github.com/TypeScriptToLua/TypeScriptToLua to write your neovim config or plugins in typescript

Usage

  1. Install this package and the required dependencies for a tstl project
npm install @sigmasd/nvim-types lua-types @typescript-to-lua/language-extensions typescript-to-lua typescript --save-dev 
  1. Activate the types in tsconfig.json
  {
  "compilerOptions": {
    "types": ["@sigmasd/nvim-types", "@typescript-to-lua/language-extensions", "lua-types/jit"]
  }
}

Thats it you should be able now to run your project (npx tstl -p tsconfig.json) and have lsp working correctly.

Credits

Credits to https://github.com/jose-elias-alvarez/typescript.nvim for the original idea and code

About

typescript types for nivm (to be used with tstl)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published