doomemacs/modules/lang/nim
Henrik Lissner bfe7b9f1c4
lang/nim: fix invalid argument errors
The nimsuggest plugin tries to build a unique path for temporary files
for its flycheck checker. This path contains /tmp/emacs-nim-mode/A/B,
where A is the frame ID and B is the full path to the file being checked.

However, the original `nimsuggest--get-dirty-dir' incorrectly extracts
the frame ID from the string representation of `selected-frame' if
frame-title-format has been modified (which Doom has). The result is the
title of the frame, which can contain illegal path characters in
Windows, which in turn causes invalid argument errors when
`nimsuggest--make-tempdir' tries to use it.

This should really be reported upstream!
2018-08-30 22:35:25 +02:00
..
config.el lang/nim: fix invalid argument errors 2018-08-30 22:35:25 +02:00
doctor.el lang/nim: add doctor.el #568 2018-05-09 10:22:28 +02:00
packages.el add basic support for the nim language 2018-05-08 11:50:12 -03:00
README.org lang/nim: revise & conform readme to conventions #568 2018-05-09 10:22:24 +02:00

:lang Nim

This module is a work in progress.

This module adds Nim support to Emacs.

  • Code completion (nimsuggest + company)
  • Syntax checking (nimsuggest + flycheck)
  • Babel support (ob-nim)

Table of Contents   TOC

Module Flags

This module provides no flags.

Prerequisites

  • nim (for building & evaluation)
  • nimsuggest (for code completion, syntax checking & jump-to-definition functionality)

Nim

choosenim is an installer and version manager for the Nim programming language. You can install the latest stable release of Nim by running the following in your terminal and following the onscreen instructions:

curl https://nim-lang.org/choosenim/init.sh -sSf | sh

Alternatively, nim is usually available through your OS's package manager:

MacOS

brew install nim

Arch Linux

sudo pacman --needed --noconfirm -S nim nimble

Configuration