A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/nim-lang/Nim/wiki/editor-support below:

Editor Support · nim-lang/Nim Wiki · GitHub

If you add more editor support, don't forget to add it to the FAQ as well.

The following editors have some Nim support:

Visual Studio Code aka VSCode (and VSCodium) IntelliJ IDEA, CLion, etc. (Jetbrains IDEs)
" acp plugins
plug 'girishji/vimcomplete'
plug 'girishji/lsp-complete.vim'
plug 'yegappan/lsp'

" for nim plugins
plug 'Angluca/nim.vim'
plug 'Angluca/auto-pairs'

" lsp config
au filetype nim call LspAddServer([#{
            \    name: 'nimlsp',
            \    filetype: ['nim'],
            \    path: 'nimlsp',
            \    args: []
            \  }])
[[language]]
name = "nim"
language-servers = [ "nimlangserver" ]

LiClipse is a plugin for Eclipse (which also provides a standalone version for convenience) which provides Nim support providing syntax-highlighting, outline, comment/uncomment (ctrl+/), select/deselect scope (Shift+Alt+Up/Down), auto-indent, mark occurrences, user templates, multiple cursors (Ctrl+K or Ctrl+Alt+mouse select) and indent guides.

Recent versions of Scite have out-of-the-box support for Nim. For older versions:
http://sourceforge.net/p/scintilla/scite/ci/default/tree/src/nimrod.properties?format=raw

To enable syntax highlighting, edit the global config file: (from http://forum.nim-lang.org/t/312)

To add *.nim to Scite's "All Source" filter (tell Scite to treat .nim files as source code):

Aporia is a Nim IDE written in Nim.

https://github.com/nim-lang/Aporia/

https://github.com/Gravityzwell/NimStudio

https://github.com/zah/nim.lt/

Gedit/Other GtkSourceView editors

There is a .lang file for gedit here

Geany is a lightweight GUI text editor using Scintilla and GTK+, including basic IDE features. It supports syntax highlighting for Nim since Geany 1.36.

Basic ~/.ctags rules for Nim code (Feel free to improve and contribute) Don't use this if possible, Nim idetools provides better results.

--langdef=nim
--langmap=nim:.nim
--regex-nim=/(\w+)\*?\s*=\s*object/\1/t,class/
--regex-nim=/(\w+)\*?\s*=\s*enum/\1/t,enum/
--regex-nim=/(\w+)\*?\s*=\s*tuple/\1/t,tuple/
--regex-nim=/(\w+)\*?\s*=\s*range/\1/t,subrange/
--regex-nim=/(\w+)\*?\s*=\s*proc/\1/t,proctype/
--regex-nim=/proc\s+(\w+)/\1/f,procedure/
--regex-nim=/method\s+(\w+)/\1/f,method/
--regex-nim=/proc\s+`([^`]+)`/\1/o,operator/
--regex-nim=/template\s+(\w+)/\1/t,template/
--regex-nim=/macro\s+(\w+)/\1/m,macro/

Alternatively, there's a native tags generator specifically for Nim: https://bitbucket.org/nimcontrib/ntags

https://github.com/exhu/nimrod-misc/tree/master/jedit

Syntax highlighting:

https://github.com/PhilipWitte/NimKate

Available from the bundle installer in preferences (repository).

Enable the experimental plugin 'Nim' from the menu Help -> About Plugin.. Support

https://github.com/xyz32/KDevelop-template

Demo: https://vimeo.com/135918228

KDevelop templates for Nim project and Nim file:

Make sure you have both Nim and Nimble installed.

http://howl.io

Recent versions of Howl have built-in Nim syntax highlighting.

https://github.com/zyedidia/micro

Has built-in Nim syntax highlighting

Pull request with the description of how to apply the attached settings locally to enable the Nim syntax highlighting.

http://kakoune.org/

Has built-in Nim syntax highlighting and external linting support using Nim check with this hook

Nim lexer is present in addons. To install it, use menu item "Plugins / Addons Manager / Install".

Plugin "LSP Client" supports Nim LSP server good: https://wiki.freepascal.org/CudaText_plugins#LSP_server_for_Nim

Language Server Protocol (LSP)

https://github.com/PMunch/nimlsp

Partial implementation including completion and definitions. Will require separate syntax and indenting plugin.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4