From 47badd8a16c153c4494c3d8b06e961bbb9ddceba Mon Sep 17 00:00:00 2001 From: Niklas Koponen Date: Sun, 23 Feb 2025 10:19:46 +0200 Subject: [PATCH] Added documentation how to set up deno lsp in kickstart.nvim --- .../getting_started/setup_your_environment.md | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/runtime/getting_started/setup_your_environment.md b/runtime/getting_started/setup_your_environment.md index 7b400d412..461c7d695 100644 --- a/runtime/getting_started/setup_your_environment.md +++ b/runtime/getting_started/setup_your_environment.md @@ -98,6 +98,28 @@ nvim_lsp.ts_ls.setup { For Deno, the example above assumes a `deno.json` or `deno.jsonc` file exists at the root of the project. +##### Kickstart.nvim and Mason LSP + +If you are using [kickstart.nvim](https://github.com/nvim-lua/kickstart.nvim) +add the above configuration like this inside the servers table in your +configuration `init.lua`. + +```lua +local servers = { + -- ... some configuration + ts_ls = { + root_dir = require("lspconfig").util.root_pattern({ "package.json", "tsconfig.json" }), + single_file_support = false, + settings = {}, + }, + denols = { + root_dir = require("lspconfig").util.root_pattern({"deno.json", "deno.jsonc"}), + single_file_support = false, + settings = {}, + }, + } +``` + #### coc.nvim Once you have