exelotl / textadept-nim

Nim language plugin for Textadept with autocompletion support (The developement is suspended. Ping me if you need something.)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

textadept-nim

Nim language plugin for Textadept with autocompletion support

Warning! Work still in progress!

Features:

  • 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

Requirements

  • nimsuggest
  • nim compiller (for compilation support)
  • nimble (for project building)

Installation

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"

Autocompletion icon meanings

Compile-time related objects

Compile-time related objects have a orange background color

- Conditional argument

- Macro

- Template

Containers

Containers have a cyan background color and sometimes are enclosed into a brackets

- Constant value

- Enum field

- Temporary variable inside a "for" cycle

- Object field

- Generic parameter

- Immutable value introduced with "let" keyword

- Procedure/method/(or other executable object) parameter

- Implict result variable

- Temporary variable

- Just a variable introduced with "var" keyword

Executable objects

Executable objects have a green background color and brackets after the letter

- Converter

- Iterator

- Method

- Procedure

Other objects

Other objects have a purple background color and some of them should never apear, but it has been added thougth.

- Alias

- Dynamic library

- Label

- Module

- Package

- Stub

- Type

- Unknown object

About

Nim language plugin for Textadept with autocompletion support (The developement is suspended. Ping me if you need something.)

License:MIT License


Languages

Language:Lua 99.5%Language:Shell 0.5%