Skip to content

Commit 47badd8

Browse files
committed
Added documentation how to set up deno lsp in kickstart.nvim
1 parent aed5bc4 commit 47badd8

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

runtime/getting_started/setup_your_environment.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,28 @@ nvim_lsp.ts_ls.setup {
9898
For Deno, the example above assumes a `deno.json` or `deno.jsonc` file exists at
9999
the root of the project.
100100

101+
##### Kickstart.nvim and Mason LSP
102+
103+
If you are using [kickstart.nvim](https://github.com/nvim-lua/kickstart.nvim)
104+
add the above configuration like this inside the servers table in your
105+
configuration `init.lua`.
106+
107+
```lua
108+
local servers = {
109+
-- ... some configuration
110+
ts_ls = {
111+
root_dir = require("lspconfig").util.root_pattern({ "package.json", "tsconfig.json" }),
112+
single_file_support = false,
113+
settings = {},
114+
},
115+
denols = {
116+
root_dir = require("lspconfig").util.root_pattern({"deno.json", "deno.jsonc"}),
117+
single_file_support = false,
118+
settings = {},
119+
},
120+
}
121+
```
122+
101123
#### coc.nvim
102124

103125
Once you have

0 commit comments

Comments
 (0)