Skip to content

Latest commit

 

History

History
87 lines (54 loc) · 1.86 KB

README.md

File metadata and controls

87 lines (54 loc) · 1.86 KB

kcl.nvim

FOSSA Status

Neovim KCL Extension

image

⚡️ Requirements

Manually:

Install the kcl-language-server from the binary.

Don't forget to ensure it is in your $PATH, check the install location through the following command.

which kcl-language-server

Simply call :MasonInstall kcl to install the kcl-language-server

:MasonInstall kcl

📦 Installation

Install the plugin using your preferred plugin manager such as:

use 'kcl-lang/kcl.nvim'
require('lazy').setup({
  "kcl-lang/kcl.nvim",
})
local vim = vim
local Plug = vim.fn['plug#']

vim.call 'plug#begin'
Plug('kcl-lang/kcl.nvim')
vim.call 'plug#end'

🚀 LSP Config

Add this to init.lua:

require('lspconfig').kcl.setup({})

✨ Features

  • Syntax Highlight
  • Code folding
  • Quick Comment
  • Diagnostics: Warnings and errors in KCL file.

🍭 Commands

Normal mode:

zC Close all folds under the cursor recursively.

zO Open all folds under the cursor recursively.

zM Close all folds.

zR Open all folds.

License

FOSSA Status