mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-11-09 06:55:30 +00:00
languages/haskell: add warnings about DAP
DAP is currently configured with haskell-tools, which causes haskell-tools languages server to also be enabled. Show a warning to inform the user.
This commit is contained in:
parent
925b9b9692
commit
81564b5e46
1 changed files with 11 additions and 0 deletions
|
|
@ -44,6 +44,7 @@
|
|||
haskell-tools =
|
||||
serverCommon
|
||||
// {
|
||||
# haskell-tools is already started by haskell-tools.nvim via ftplugin
|
||||
enable = false;
|
||||
on_attach =
|
||||
mkLuaInline
|
||||
|
|
@ -111,6 +112,16 @@ in {
|
|||
cfg.lsp.servers;
|
||||
})
|
||||
|
||||
(mkIf (cfg.dap.enable && cfg.lsp.enable && !elem "haskell-tools" cfg.lsp.servers) {
|
||||
warnings = [
|
||||
(
|
||||
"You appear to have enabled vim.languages.haskell.dap, which implicitly "
|
||||
+ "causes haskell-tools-nvim plugin to be added. Make sure you also add "
|
||||
+ "'haskell-tools' server to vim.languages.haskell.lsp.servers"
|
||||
)
|
||||
];
|
||||
})
|
||||
|
||||
(mkIf (cfg.dap.enable || (cfg.lsp.enable && elem "haskell-tools" cfg.lsp.servers)) {
|
||||
vim = {
|
||||
startPlugins = ["haskell-tools-nvim"];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue