Skip to content

Latest commit

History

34 Commits

Folders and files

NameName
Last commit message
Last commit date

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

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages