mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-10 09:14:31 +02:00
plugins/nvim-lsp: add rootDir option for language servers (#387)
This commit is contained in:
parent
fe581914ba
commit
51afeda8e5
2 changed files with 16 additions and 0 deletions
|
@ -49,6 +49,13 @@
|
|||
filetypes = ["python"];
|
||||
autostart = false;
|
||||
};
|
||||
# rootDir
|
||||
typst-lsp = {
|
||||
enable = true;
|
||||
rootDir = ''
|
||||
require 'lspconfig.util'.root_pattern('.git', 'main.typ')
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue