Editor Setup
Kura provides an implementation of the language-server-protocol (LSP).
Neovim
Section titled “Neovim”--- Register the filetype with Neovim:vim.filetype.add({ extension = { kui = 'kura', },})
--- Configure the LSP:local make_default_capabilities = require('plugins.lsp.capabilities')local capabilities = make_default_capabilities()
vim.lsp.config('kura', { capabilities = capabilities, settings = {}, cmd = { 'kura-lsp', }, filetypes = { 'kura', }, root_markers = { '.git', },})
--- Enable the LSPvim.lsp.enable('kura')Syntax Highlighting Using Tree-sitter
Section titled “Syntax Highlighting Using Tree-sitter”Kura also provides a tree-sitter parser for syntax highlighting using Neovim:
--- Enable using tree-sitter-manager:{ 'romus204/tree-sitter-manager.nvim', dependencies = {}, opts = { languages = { kura = { install_info = { url = 'https://github.com/s0cks/tree-sitter-kura.git', files = { 'src/parser.c' }, queries = 'queries/kura', }, filetype = 'kura', }, }, },}