Skip to content

Pesterenan/ic10.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ic10.nvim

A dedicated Neovim plugin for Stationeers IC10 (Integrated Circuit) language support.

Features

  • File Detection: Automatically detects *.ic10 files.
  • Syntax Highlighting: Simple vim-style syntax highlighting.
  • LSP: Autocomplete: Instructions, Registers (r0-r15, d0-d5), Labels (for branch instructions), and Logic Types/Properties.
  • LSP: Go to Definition: Jump to label definitions.
  • LSP: Hover: Documentation for all instructions and in-game Logic Types (e.g., Pressure, RatioOxygen).
  • LSP: Rename: Rename aliases, defines and labels.
  • LSP: References: Find usages of labels or variables.
  • LSP: Diagnostics: Support for error validation (e.g., Max number of instructions, duplicated variables...)

Installation

Using lazy.nvim:

return {
  "Pesterenan/ic10.nvim",
  ft = "ic10",
  config = function()
    require("ic10").setup({
      debug = false -- Set to true to enable event logs
    })
  end,
}

Usage

Just open any .ic10 file. The plugin will automatically attach the LSP and setup syntax highlighting.

Keymaps (Standard LSP)

  • K: Hover documentation.
  • gd: Go to definition (for labels).
  • grr: Go to references.
  • grn: Rename symbol.
  • Ctrl-n / Ctrl-p: Next or Previous Autocomplete.

About

A dedicated Neovim plugin for Stationeers IC10 (Integrated Circuit) language support.

Topics

Resources

License

Stars

Watchers

Forks

Contributors