Skip to content

Commit 3e83987

Browse files
authored
fix: use correct directory for symbol table (#34)
1 parent 0a44d6c commit 3e83987

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

lib/next_ls/lsp_supervisor.ex

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ defmodule NextLS.LSPSupervisor do
3737
{Task.Supervisor, name: NextLS.TaskSupervisor},
3838
{GenLSP.Buffer, buffer_opts},
3939
{NextLS.DiagnosticCache, name: :diagnostic_cache},
40-
{NextLS.SymbolTable, name: :symbol_table, path: Path.expand("~/.cache/nvim/elixir-tools.nvim")},
40+
{NextLS.SymbolTable, name: :symbol_table, path: Path.expand(".elixir-tools")},
4141
{Registry, name: NextLS.ExtensionRegistry, keys: :duplicate},
4242
{NextLS,
4343
cache: :diagnostic_cache,

lib/next_ls/symbol_table.ex

+2
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ defmodule NextLS.SymbolTable do
2525
def init(args) do
2626
path = Keyword.fetch!(args, :path)
2727

28+
File.mkdir_p!(path)
29+
2830
{:ok, name} =
2931
:dets.open_file(:symbol_table,
3032
file: Path.join(path, "symbol_table.dets") |> String.to_charlist(),

0 commit comments

Comments
 (0)