added dart language support

This commit is contained in:
2026-01-11 14:11:52 +01:00
parent 10234ceb9a
commit 8e82b16dbd
3 changed files with 8 additions and 1 deletions

View File

@@ -58,6 +58,7 @@ in
pkgs.clang-tools
pkgs.taplo
pkgs.tinymist
pkgs.dart
];
xdg.configFile = {
"nvim/init.lua".source = config.lib.file.mkOutOfStoreSymlink ./neovim/init.lua;

View File

@@ -122,7 +122,8 @@ local function lsp_setup()
'clangd',
'eslint',
'nushell',
'tinymist'
'tinymist',
'dartls'
-- 'jdtls'
})
@@ -160,6 +161,8 @@ local function lsp_setup()
cmd = { "tinymist" }
}))
vim.lsp.config('dartls', with_defaults(require("plugins.spec.server_configurations.dart")))
vim.diagnostic.config({
virtual_text = {
prefix = '', -- or '■', '▎', 'x', '' whatever you want

View File

@@ -0,0 +1,3 @@
return {
cmd = { "dart", "language-server", "--protocol=lsp" },
}