diff options
author | Luca Matei Pintilie <luca@lucamatei.com> | 2023-08-06 19:23:34 +0000 |
---|---|---|
committer | Luca Matei Pintilie <luca@lucamatei.com> | 2023-08-06 19:23:34 +0000 |
commit | b7db85b9c33da9f18485c18775628951152137f6 (patch) | |
tree | 3bf375abc190c14a0dcc4b126b93e849b252283a /.config/nvim/lua/lsp.lua | |
parent | 43fd5c1630142d25dc560f7be36695fb33cc8c30 (diff) | |
download | dotfiles-b7db85b9c33da9f18485c18775628951152137f6.tar dotfiles-b7db85b9c33da9f18485c18775628951152137f6.tar.gz dotfiles-b7db85b9c33da9f18485c18775628951152137f6.tar.bz2 dotfiles-b7db85b9c33da9f18485c18775628951152137f6.tar.lz dotfiles-b7db85b9c33da9f18485c18775628951152137f6.tar.xz dotfiles-b7db85b9c33da9f18485c18775628951152137f6.tar.zst dotfiles-b7db85b9c33da9f18485c18775628951152137f6.zip |
Update neovim a bit, with razor plugin
Diffstat (limited to '')
-rw-r--r-- | .config/nvim/lua/lsp.lua | 41 |
1 files changed, 23 insertions, 18 deletions
diff --git a/.config/nvim/lua/lsp.lua b/.config/nvim/lua/lsp.lua index 2591a8b..cd1f6f5 100644 --- a/.config/nvim/lua/lsp.lua +++ b/.config/nvim/lua/lsp.lua @@ -118,6 +118,7 @@ local lsputils = lspconfig.util lspconfig.tsserver.setup({ on_attach = on_attach; root_dir = lsputils.root_pattern("package.json", "tsconfig.json"); + single_file_mode = false; settings = { typescript = { inlayHints = { @@ -144,27 +145,31 @@ lspconfig.tsserver.setup({ }; }) -deno_nvim.setup({ - server = { - -- Uncomment to allow all js/ts files, not just in a deno context - -- root_dir = vim.loop.cwd; - capabilities = capabilities; - on_attach = on_attach; - settings = { - deno = { - unstable = true; - inlayHints = { - enumMemberValues = { enabled = true }; - functionLikeReturnTypes = { enabled = true }; - parameterNames = { enabled = "all" }; - parameterTypes = { enabled = true }; - propertyDeclarationTypes = { enabled = true }; - variableTypes = { enabled = true; suppressWhenTypeMatchesName = false }; +-- Temporarily disable +if false then + deno_nvim.setup({ + server = { + -- Uncomment to allow all js/ts files, not just in a deno context + -- root_dir = vim.loop.cwd; + root_dir = lsputils.root_pattern("deno.json", "deno.jsonc", "!package.json"); + capabilities = capabilities; + on_attach = on_attach; + settings = { + deno = { + unstable = true; + inlayHints = { + enumMemberValues = { enabled = true }; + functionLikeReturnTypes = { enabled = true }; + parameterNames = { enabled = "all" }; + parameterTypes = { enabled = true }; + propertyDeclarationTypes = { enabled = true }; + variableTypes = { enabled = true; suppressWhenTypeMatchesName = false }; + }; }; }; }; - }; -}); + }); +end lspconfig.rust_analyzer.setup({ capabilities = capabilities; |