From 7138d729d58c4c060564721fc52daf8165b39025 Mon Sep 17 00:00:00 2001 From: Thomas Ruoff Date: Mon, 16 Sep 2024 08:18:34 +0200 Subject: [PATCH] let neotree detect root by .git dir --- lua/plugins/lsp.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lua/plugins/lsp.lua b/lua/plugins/lsp.lua index 842d6f2..91fbb0a 100644 --- a/lua/plugins/lsp.lua +++ b/lua/plugins/lsp.lua @@ -16,6 +16,8 @@ return { 'b0o/SchemaStore.nvim', }, config = function() + local util = require 'lspconfig.util' + require('neodev').setup { -- library = { -- plugins = { "nvim-dap-ui" }, @@ -39,6 +41,7 @@ return { cssls = true, ts_ls = { + root_dir = util.find_git_ancestor, settings = { diagnostics = { ignoredCodes = {