2015-12-02 14:23:39 +00:00
|
|
|
#+TITLE: Nim layer
|
2015-07-24 11:16:06 +00:00
|
|
|
|
2019-05-07 08:53:56 +00:00
|
|
|
#+TAGS: general|layer|multi-paradigm|programming
|
2019-05-05 17:26:40 +00:00
|
|
|
|
2015-07-24 11:16:06 +00:00
|
|
|
[[file:img/logo.png]]
|
|
|
|
|
2019-05-07 20:05:06 +00:00
|
|
|
* Table of Contents :TOC_5_gh:noexport:
|
2017-05-22 14:16:12 +00:00
|
|
|
- [[#description][Description]]
|
2018-01-07 22:26:54 +00:00
|
|
|
- [[#features][Features:]]
|
2017-05-22 14:16:12 +00:00
|
|
|
- [[#install][Install]]
|
|
|
|
- [[#working-with-nim][Working with Nim]]
|
|
|
|
- [[#nim-commands-start-with-m][Nim commands (start with =m=):]]
|
2015-07-24 11:16:06 +00:00
|
|
|
|
|
|
|
* Description
|
2018-01-07 22:26:54 +00:00
|
|
|
This layer adds support for the multi-paradigm language =Nim=.
|
2015-07-24 11:16:06 +00:00
|
|
|
|
2018-01-07 22:26:54 +00:00
|
|
|
** Features:
|
2016-09-15 11:04:48 +00:00
|
|
|
- Code completion.
|
|
|
|
- Jump to definition.
|
|
|
|
- Syntax checking.
|
2015-07-24 11:16:06 +00:00
|
|
|
|
|
|
|
* Install
|
2016-01-06 05:21:55 +00:00
|
|
|
To use this configuration layer, add it to your =~/.spacemacs=. You will need to
|
|
|
|
add =nim= to the existing =dotspacemacs-configuration-layers= list in this
|
|
|
|
file.
|
2015-07-24 11:16:06 +00:00
|
|
|
|
2016-09-15 11:04:48 +00:00
|
|
|
For syntax checking, the =syntax-checking= layer must also be added.
|
|
|
|
|
|
|
|
For all the features to work properly, =nimsuggest= must be installed properly
|
|
|
|
and =nimsuggest= binary must be in $PATH.
|
|
|
|
|
2015-07-24 11:16:06 +00:00
|
|
|
* Working with Nim
|
|
|
|
** Nim commands (start with =m=):
|
2016-04-13 03:31:38 +00:00
|
|
|
|
2018-12-05 03:03:03 +00:00
|
|
|
| Key binding | Description |
|
2016-11-21 15:57:14 +00:00
|
|
|
|----------------------+------------------------------|
|
|
|
|
| ~SPC m c r~ | =nim compile --run main.nim= |
|
|
|
|
| ~SPC m g g~ or ~M-.~ | Jump to definition |
|
|
|
|
| ~SPC m g b~ or ~M-,~ | Jump back |
|
2019-05-26 20:58:52 +00:00
|
|
|
| ~SPC m h h~ | Show symbol's documentation |
|
2016-11-21 15:57:14 +00:00
|
|
|
|----------------------+------------------------------|
|