mirror of
https://github.com/LazyVim/starter.git
synced 2026-07-22 04:21:03 +00:00
Dart support
This commit is contained in:
parent
14b1cdd001
commit
b5ee1e5c47
2 changed files with 14 additions and 1 deletions
|
|
@ -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
9
lua/plugins/null-ls.lua
Normal 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,
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue