teal-types
neodev.nvim
teal-types | neodev.nvim | |
---|---|---|
2 | 49 | |
101 | 1,992 | |
4.0% | - | |
5.2 | 9.0 | |
18 days ago | 29 days ago | |
Lua | Lua | |
MIT License | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
teal-types
-
Experience with statically typed lang that compiles to lua for plugins/scripting?
I have no affiliations, but I think teal would be a great such language. It feels very much like "what TS is to JS" in that it's syntax is (I believe) a superset of lua, and it is possible to require teal files in lua files by first requiring the teal compiler (a one line change). In fact, there's already a neovim plugin that I use everyday written in teal! Teal also has the concept of declaration files (like `.d.ts` in TS or `.pyi` in python), and it has [declaration files for neovim files](https://github.com/teal-language/teal-types/tree/master/types/neovim) already. However, its LSP is very, very young.
-
Is it possible to configure neovim with teal instead of lua?
There are type definitions in the teal-types repo for neovim. And as for theoretical, my config is like 99% teal right now (granted I am biased since I'm one of its maintainiers :P) (also it's on a dev branch of teal with some unstable features so don't just copy paste stuff and expect it to work).
neodev.nvim
-
Configuring Neovim with Fennel
Also the vim API signature is not available using the fennel-language-server In lua you can install neodev and you will get some nice lsp suggestions with the vim API, this is sadly not possible in fennel right now
-
Lsp and files outside nvim/lua/
Other than the root_dir problem, I think the lsp server might have been attached but configuration would be different. For instance, if one is using folke's neodev for API completion (https://github.com/folke/neodev.nvim/issues/158) it would work differently for nvim config files and other lua workspaces.
- Editing init.lua with lua_ls on gives "Undefined global : vim" ?
-
Best way to debug performance issues?
Try to debug what happens on exit, maybe https://neovim.io/doc/user/starting.html#-V works. Regarding nvim-cmp being slow, do you have https://github.com/folke/neodev.nvim installed? If yes, try removing it and checking if it's an issue. It's been slowing down my completion for a while until I pinpointed the issue (and it was slowing it down always, not just when editing lua code).
-
Unable to setup lua_ls, though other servers work
You can try neodev.nvim. It's really great especially if you're planning for plugin development.
-
Help with autocomplete for plugins
Are you using https://github.com/folke/neodev.nvim ?
- how to fix LSP , vim undefined!
-
Get Lua LSP to know about vim.api
Okay i figured it out myself https://github.com/folke/neodev.nvim provides lua files with the required type signatures.
- LSP for your lua config
- Amazing LSP for your lua config
What are some alternatives?
nvim-moonwalk - Use any language that compiles to Lua in your Neovim configuration
neogen - A better annotation generator. Supports multiple languages and annotation conventions.
teal-language-server - A language server for Teal, a typed dialect of Lua
nvim-lspconfig - Quickstart configs for Nvim LSP
impatient.nvim - Improve startup time for Neovim
nvim-cmp - A completion plugin for neovim coded in Lua.
gitsigns.nvim - Git integration for buffers
nvim-lua-guide - A guide to using Lua in Neovim
nvim-oxi - :link: Rust bindings to all things Neovim
IntelliJ-EmmyLua - Lua IDE/Debugger Plugin for IntelliJ IDEA
lua-language-server - A language server that offers Lua language support - programmed in Lua
neoconf.nvim - 💼 Neovim plugin to manage global and project-local settings