All Projects → xomachine → textadept-nim

xomachine / textadept-nim

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

Programming Languages

lua
6591 projects
shell
77523 projects

Projects that are alternatives of or similar to textadept-nim

base16-textadept
Base16 themes for the Textadept editor
Stars: ✭ 56 (+166.67%)
Mutual labels:  textadept
ta-rust
A mirror for the textadept module ta-rust hosted in bitbucket
Stars: ✭ 21 (+0%)
Mutual labels:  textadept
lua-syntaxhighlight
A code syntax to HTML highlighter using lexers from Textadept
Stars: ✭ 20 (-4.76%)
Mutual labels:  textadept

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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].