From f8b5cbe6312b568def1f91d747e2cdb8984fdf2e Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Fri, 18 Apr 2025 17:44:38 +0200 Subject: docs: cleanup - brief should live at the top of each file - fix indentation for some docs --- lsp/ds_pinyin_lsp.lua | 33 +++++++++++++++++---------------- 1 file changed, 17 insertions(+), 16 deletions(-) (limited to 'lsp/ds_pinyin_lsp.lua') diff --git a/lsp/ds_pinyin_lsp.lua b/lsp/ds_pinyin_lsp.lua index 2b3e7fa8..67407827 100644 --- a/lsp/ds_pinyin_lsp.lua +++ b/lsp/ds_pinyin_lsp.lua @@ -1,3 +1,20 @@ +---@brief +--- +--- https://github.com/iamcco/ds-pinyin-lsp +--- Dead simple Pinyin language server for input Chinese without IME(input method). +--- To install, download the latest [release](https://github.com/iamcco/ds-pinyin-lsp/releases) and ensure `ds-pinyin-lsp` is on your path. +--- And make ensure the database file `dict.db3` is also downloaded. And put the path to `dict.dbs` in the following code. +--- +--- ```lua +--- +--- vim.lsp.config('ds_pinyin_lsp', { +--- init_options = { +--- db_path = "your_path_to_database" +--- } +--- }) +--- +--- ``` + local util = require 'lspconfig.util' local bin_name = 'ds-pinyin-lsp' @@ -29,22 +46,6 @@ local function ds_pinyin_lsp_on(bufnr) end end ----@brief ---- --- https://github.com/iamcco/ds-pinyin-lsp --- Dead simple Pinyin language server for input Chinese without IME(input method). --- To install, download the latest [release](https://github.com/iamcco/ds-pinyin-lsp/releases) and ensure `ds-pinyin-lsp` is on your path. --- And make ensure the database file `dict.db3` is also downloaded. And put the path to `dict.dbs` in the following code. --- --- ```lua --- --- vim.lsp.config('ds_pinyin_lsp', { --- init_options = { --- db_path = "your_path_to_database" --- } --- }) --- --- ``` return { cmd = { bin_name }, filetypes = { 'markdown', 'org' }, -- cgit v1.2.3-70-g09d2