Giter Site home page Giter Site logo

Comments (9)

realitymolder avatar realitymolder commented on August 25, 2024 1

I'm not sure if I understand. Tried to use the LSPconfig + Mason (for other LSP support) still don't get any support in my files.

from mason.nvim.

williambotman avatar williambotman commented on August 25, 2024

Hello! Cool! Pull requests are always very welcomed to add new packages. If the distribution of the
package is simple, the installation will most likely be so as well (existing package installers may be
used for reference!). Otherwise, @williamboman will get around to looking into this ASAP!

from mason.nvim.

williamboman avatar williamboman commented on August 25, 2024

Hello! This was requested the other day: #136 (comment)

These things come bundled with the Dart executable. Don’t you have it installed? Or is there some other reason you’d like it to be available via Mason?

from mason.nvim.

StevenJPx2 avatar StevenJPx2 commented on August 25, 2024

Formatting and linting works. However I'm not able to do do any code actions, get diagnostics, type info and such using vim.lsp because I don't have dart-ls.

from mason.nvim.

br1anchen avatar br1anchen commented on August 25, 2024

@StevenJPx2 I am currently using both williamboman/mason.nvim and williamboman/mason-lspconfig.nvim in my config to bridge the lsp name differences between mason and lspconfig.
Are you sure that you called lspconfig.dartls.setup() in your config? I have all vim.lsp available in dart filetype buffer with dart installed in my environment. I do not think there is anything mason can provide in this case since language server, formatter, linter are all from dart itself.

from mason.nvim.

williamboman avatar williamboman commented on August 25, 2024

because I don't have dart-ls.

I'm not sure I follow what dart-ls is? Here's for example the command lspconfig provides for the dart language server: https://github.com/neovim/nvim-lspconfig/blob/master/lua/lspconfig/server_configurations/dartls.lua#L5

from mason.nvim.

StevenJPx2 avatar StevenJPx2 commented on August 25, 2024

@StevenJPx2 I am currently using both williamboman/mason.nvim and williamboman/mason-lspconfig.nvim in my config to bridge the lsp name differences between mason and lspconfig. Are you sure that you called lspconfig.dartls.setup() in your config? I have all vim.lsp available in dart filetype buffer with dart installed in my environment. I do not think there is anything mason can provide in this case since language server, formatter, linter are all from dart itself.

AAAh. Never needed to do this for nvim-lsp-installer, so I didn't set it up. But it works now. But to your other point, nvim-lsp-installer did have the server for dart lsp.

from mason.nvim.

br1anchen avatar br1anchen commented on August 25, 2024

Yeah, dartls is only registry for dart lsp in nvim-lsp-installer here. Technically it only checks if dart is installed in the environment or not.

from mason.nvim.

williamboman avatar williamboman commented on August 25, 2024

But to your other point, nvim-lsp-installer did have the server for dart lsp.

Ah I forgot about this. I remember deciding to remove it because of reasons I mentioned in the other comment I linked to. I am however a bit incosistent with this as deno exists as a package (they have the exact same approach).

from mason.nvim.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.