This document explains how to install syntax highlighting for Kos in many popular editors.
Copy tools/Kos.tmbundle directory to:
%USERPROFILE%\AppData\Roaming\Sublime Text 3\Packages(Windows)$HOME/.config/sublime-text-3/Packages(Linux)~/Library/Application\ Support/Sublime\ Text/Packages(macOS).
Remove the .tmbundle extension from directory name.
Copy the whole tools/Kos.tmbundle directory to ~/Library/Application\ Support/TextMate/Bundles
directory.
Copy the contents of tools/vim directory to:
$HOME\.vim(Linux, macOS).%USERPROFILE%/_vim(Windows).
-
NeoVim configuration is located in
~/.config/nvimon Linux and MacOS. On Windows the same directory is located in~\AppData\Local\nvim. -
The latest NeoVim should detect
kosfile type automatically. If it does not, addkosfile type by adding the following line in~/.config/nvim/lua/config/options.lua:vim.filetype.add({ extension = { kos = "kos" } }) -
Configure
nvim-treesitterwithkossupport in~/.config/nvim/lua/plugins/tree-sitter.lua(or similar file of your choice in that directory):return { { "nvim-treesitter/nvim-treesitter", opts = { ensure_installed = { "kos" -- enable more languages as needed }, } } } -
If needed, run
:TSInstall.
Copy tools/Kos.tmbundle directory to:
%USERPROFILE%\.vscode\extensions(Windows)$HOME/.vscode/extensions(Linux, macOS).
Remove the .tmbundle extension from directory name.