this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

try to fix deno detection in nvim

+9 -3
+9 -3
nvim/lua/plugins/lsp.lua
··· 65 65 { 66 66 "williamboman/mason-lspconfig.nvim", 67 67 config = function() 68 + local if_not_deno = function(bufn) 69 + if not vim.fs.root(bufn, { "deno.json" }) then 70 + return vim.fs.root(bufn, { "package.json", "tsconfig.json", ".git" }) 71 + end 72 + end 68 73 require("mason-lspconfig").setup({ 69 74 automatic_installation = true, 70 75 ensure_installed = { ··· 108 113 settings = { 109 114 run = "onSave", 110 115 }, 116 + root_dir = function(_, bufn) 117 + return if_not_deno(bufn) 118 + end, 111 119 } 112 120 LangServers.denols = { 113 121 root_dir = function(_, bufn) ··· 116 124 } 117 125 LangServers.vtsls = { 118 126 root_dir = function(_, bufn) 119 - if not vim.fs.root(bufn, { "deno.json" }) then 120 - return vim.fs.root(bufn, { "package.json", "tsconfig.json", ".git" }) 121 - end 127 + return if_not_deno(bufn) 122 128 end, 123 129 } 124 130 function SetupLspHandlers()