]> localhost Git - nvim.git/commitdiff
feat: deno support
authorJansen <[email protected]>
Thu, 17 Oct 2024 17:30:36 +0000 (13:30 -0400)
committerJansen <[email protected]>
Thu, 17 Oct 2024 17:30:36 +0000 (13:30 -0400)
init.lua

index 4a3320eda51bfcbca20c8b2903383af9b7541584..ab46f0cdebb978951ffdd53c20f287cc7e007850 100644 (file)
--- a/init.lua
+++ b/init.lua
@@ -106,11 +106,13 @@ require("lazy").setup({
     dependencies = { "williamboman/mason-lspconfig.nvim", },
     config = function()
       local manual = {
+        "deno_ls",
         "lua_ls",
+        "ts_ls",
       }
       local automatic = {
-        "ts_ls",
         "clangd",
+        "zls",
       }
 
       -- Install LSPs
@@ -177,6 +179,17 @@ require("lazy").setup({
           },
         },
       }
+
+      lspconfig.denols.setup {
+        on_attach = lsp_keymaps_on_attach,
+        root_dir = lspconfig.util.root_pattern("deno.json", "deno.jsonc"),
+      }
+
+      lspconfig.ts_ls.setup {
+        on_attach = lsp_keymaps_on_attach,
+        root_dir = lspconfig.util.root_pattern("package.json"),
+        single_file_support = false
+      }
     end
   },
 })