Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

kindermax/lets_ls

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

34 Commits

Repository files navigation

Lsp server for lets task runner

Supported features

  • Goto definition
    • Navigate to definitions of mixins files
  • Completion
    • Complete commands in depends
  • Diagnostics
  • Hover
  • Document highlight
  • Document symbol
  • Formatting
  • Signature help
  • Code action

Development

Build:

cargo build

Test:

cargo test

Lint:

cargo clippy
# or to fix lints
cargo clippy --fix --bin "lets_ls"

Release build

cargo build --release

Integration with Neovim

Add new filetype:

vim.filetype.add({
 filename = {
 ["lets.yaml"] = "yaml.lets",
 },
})

In your neovim/nvim-lspconfig servers configuration:

In order for nvim-lspconfig to recognize lets_ls we must define config for lets_ls

require("lspconfig.configs").lets_ls = {
 default_config = {
 cmd = { 
 "lets_ls",
 },
 filetypes = { "yaml.lets" },
 root_dir = util.root_pattern("lets.yaml"),
 settings = {},
 },
}

And then enable lets_ls in then servers section:

return {
 "neovim/nvim-lspconfig",
 opts = {
 servers = {
 lets_ls = {},
 pyright = {}, -- just to show an example how we enable lsp servers
 },
 },
}

Integration with VSCode

Extension can be found here.

About

LSP server for lets cli tool

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

AltStyle によって変換されたページ (->オリジナル) /