Skip to content

Commit 9180b8d

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

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

runtime/getting_started/setup_your_environment.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,26 @@ 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) add the above configuration like this inside the servers table in your configuration `init.lua`.
104+
105+
```lua
106+
local servers = {
107+
-- ... some configuration
108+
ts_ls = {
109+
root_dir = require("lspconfig").util.root_pattern({ "package.json", "tsconfig.json" }),
110+
single_file_support = false,
111+
settings = {},
112+
},
113+
denols = {
114+
root_dir = require("lspconfig").util.root_pattern({"deno.json", "deno.jsonc"}),
115+
single_file_support = false,
116+
settings = {},
117+
},
118+
}
119+
```
120+
101121
#### coc.nvim
102122

103123
Once you have

0 commit comments

Comments
 (0)