lspconfig
配置
local nimlsp_opt = {
cmd = { "nimlsp" },
filetypes = { "nim" },
root_dir = require "lspconfig".util.root_pattern("*.nim"),
single_file_support = true,
}
require('lspconfig')['nimls'].setup { nimlsp_opt, capabilities = capabilities }
安装 alaviss/nim.nvim
,激活 LSP,提供补全、高亮等
-- Nim
use { 'alaviss/nim.nvim' }
网友评论