8000 GitHub - eshepelyuk/kcl.nvim: NeoVim KCL Extension
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

eshepelyuk/kcl.nvim

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kcl.nvim

Neovim KCL Extension

image FOSSA Status

⚡️ 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

You also need to set lsp config:

local server_config = require("lspconfig.configs")
local util = require("lspconfig.util")

server_config.kcl = {
	default_config = {},
}

require("lspconfig").kcl.setup({
	cmd = { "kcl-language-server" },
	filetypes = { "kcl" },
	root_dir = util.root_pattern(".git"),
})

✨ 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

About

NeoVim KCL Extension

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Vim Script 89.3%
  • Lua 10.7%
0