Skip to content

Editor Setup

Kura provides an implementation of the language-server-protocol (LSP).

--- 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 LSP
vim.lsp.enable('kura')

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',
},
},
},
}