Dart support

This commit is contained in:
Marcelo Jacobus 2025-04-13 12:54:18 -03:00
parent 14b1cdd001
commit b5ee1e5c47
2 changed files with 14 additions and 1 deletions

View file

@ -1,10 +1,14 @@
return {
"neovim/nvim-lspconfig",
opts = function(_, opts)
print("heeeey")
opts.servers = opts.servers or {}
-- Ruby LSP
opts.servers.ruby_lsp = vim.tbl_deep_extend("force", opts.servers.ruby_lsp or {}, {
cmd = { vim.fn.expand("~/.asdf/shims/ruby"), "-S", "ruby-lsp" },
})
-- Dart LSP (Flutter)
opts.servers.dartls = {}
end,
}

9
lua/plugins/null-ls.lua Normal file
View file

@ -0,0 +1,9 @@
return {
"nvimtools/none-ls.nvim",
opts = function(_, opts)
local nls = require("null-ls")
opts.sources = vim.list_extend(opts.sources or {}, {
nls.builtins.formatting.dart_format,
})
end,
}