Nim language plugin for Textadept with autocompletion support
Warning! Work still in progress!
- Autocomplete via nimsuggest (default on Ctrl+Space or when "." is typed)
- Documentation helper (on Ctrl+H by default)
- Goto definition (on Ctrl+Shift+G by default)
- Error highlighting when file is saved or opened
- CallTip popups when brace is opened
- Project build support
- Smart replacing of both var/proc/... definition and usages (on Ctrl+G by default)
- Compile command depends on backend defined in related nimble file
- All source files from project involved to suggestion generation
- nimsuggest
- nim compiller (for compilation support)
- nimble (for project building)
Clone this repository to "~/.textadept/modules/" and put following line into your "~/.textadept/init.lua":
require "textadept-nim"
It's possible to change default key bindings by editing "~/.textadept/modules/init.lua"
Compile-time related objects have a orange background color
Containers have a cyan background color and sometimes are enclosed into a brackets
- Temporary variable inside a "for" cycle
- Immutable value introduced with "let" keyword
- Procedure/method/(or other executable object) parameter
- Just a variable introduced with "var" keyword
Executable objects have a green background color and brackets after the letter
Other objects have a purple background color and some of them should never apear, but it has been added thougth.