this repo has no description
0
fork

Configure Feed

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

nvim: fix node lsp root_dirs

Seth Etter 7cbec4b9 bcdd9681

+6 -13
+2 -2
nvim/lazy-lock.json
··· 10 10 "formatter.nvim": { "branch": "master", "commit": "eb89a1f3e079f1b9680bc7293b75fffccb5e1598" }, 11 11 "gitlab.nvim": { "branch": "main", "commit": "a260f648fe92c5d640340e1c2d55db1fe523c8a5" }, 12 12 "gitlinker.nvim": { "branch": "master", "commit": "cc59f732f3d043b626c8702cb725c82e54d35c25" }, 13 - "gitsigns.nvim": { "branch": "main", "commit": "43b0c856ae5f32a195d83f4a27fe21d63e6c966c" }, 13 + "gitsigns.nvim": { "branch": "main", "commit": "e399f9748d7cfd8859747c8d6c4e9c8b4d50a1bd" }, 14 14 "goyo.vim": { "branch": "master", "commit": "fa0263d456dd43f5926484d1c4c7022dfcb21ba9" }, 15 15 "lazy.nvim": { "branch": "main", "commit": "6c3bda4aca61a13a9c63f1c1d1b16b9d3be90d7a" }, 16 16 "lazydev.nvim": { "branch": "main", "commit": "2367a6c0a01eb9edb0464731cc0fb61ed9ab9d2c" }, ··· 22 22 "nvim-comment": { "branch": "main", "commit": "e9ac16ab056695cad6461173693069ec070d2b23" }, 23 23 "nvim-config-local": { "branch": "main", "commit": "990f3e35e0fba8fb83012d7e85f9a6a77de7f87f" }, 24 24 "nvim-lsp-file-operations": { "branch": "master", "commit": "9744b738183a5adca0f916527922078a965515ed" }, 25 - "nvim-lspconfig": { "branch": "master", "commit": "61e5109c8cf24807e4ae29813a3a82b31821dd45" }, 25 + "nvim-lspconfig": { "branch": "master", "commit": "ac1dfbe3b60e5e23a2cff90e3bd6a3bc88031a57" }, 26 26 "nvim-treesitter": { "branch": "master", "commit": "066fd6505377e3fd4aa219e61ce94c2b8bdb0b79" }, 27 27 "nvim-web-devicons": { "branch": "master", "commit": "f1420728f59843eb2ef084406b3d0201a0a0932d" }, 28 28 "plenary.nvim": { "branch": "master", "commit": "857c5ac632080dba10aae49dba902ce3abf91b35" },
+4 -11
nvim/lua/plugins/lsp.lua
··· 71 71 "klen/nvim-config-local", 72 72 }, 73 73 config = function() 74 - local function not_deno(_, bufn) 75 - local util = require("lspconfig.util") 76 - if util.root_pattern("deno.json", "deno.jsonc")(bufn) then 77 - return nil 78 - end 79 - return util.root_pattern("package.json", "tsconfig.json", ".git")(bufn) 80 - end 74 + local util = require("lspconfig.util") 81 75 82 76 require("mason").setup({}) 83 77 require("mason-lspconfig").setup({ ··· 102 96 }, 103 97 } 104 98 LangServers.vtsls = { 105 - -- root_dir = not_deno, 106 - -- single_file_support = false, 99 + single_file_support = false, 107 100 } 108 101 LangServers.eslint = { 109 - root_dir = not_deno, 110 102 single_file_support = false, 111 103 } 112 104 LangServers.denols = { 113 - root_dir = require("lspconfig.util").root_pattern("deno.json", "deno.jsonc"), 105 + root_dir = util.root_pattern("deno.json", "deno.jsonc"), 114 106 } 115 107 LangServers.yamlls = { 116 108 settings = { ··· 139 131 if server_config == false then 140 132 return 141 133 end 134 + print("Setting up " .. server_name) 142 135 vim.lsp.config(server_name, server_config or {}) 143 136 vim.lsp.enable(server_name) 144 137 end