-
Notifications
You must be signed in to change notification settings - Fork 0
Editor Setup
tazz edited this page Sep 11, 2026
·
2 revisions
taskfile-lsp implements the Language Server Protocol (LSP) and can be used with editors that support LSP.
Before configuring your editor, make sure taskfile-lsp is installed and available in your $PATH:
taskfile-lsp versionOr using which:
which taskfile-lspSee the Install Guide if you haven't installed it yet.
| Editor | Status | Configuration |
|---|---|---|
| Neovim | Supported | See below |
| VS Code | Planned | — |
| Zed | Planned | — |
Requires Neovim 0.11+
vim.lsp.config('taskfile', {
cmd = { 'taskfile-lsp' },
filetypes = { 'yaml.taskfile', 'taskfile' },
root_markers = { 'Taskfile.yaml', 'Taskfile.yml' },
})
vim.lsp.enable('taskfile')Once enabled, opening a supported Taskfile filetype starts the language server.
taskfile-lsp supports the following Neovim filetypes:
taskfileyaml.taskfile
If your editor configuration doesn't detect Taskfiles automatically, you can either:
- Install the taskfile.nvim plugin which provides automatic Taskfile filetype
detection and enhanced
taskfile-lspandtasksupport - Add the filetype using the Neovim API:
vim.filetype.add({
filename = {
['Taskfile.yaml'] = 'yaml.taskfile',
['Taskfile.yml'] = 'yaml.taskfile',
},
})- Add the filetype marker to the top of your Taskfile:
# Taskfile.yaml
# v​im: set filetype=yaml.taskfile:
---
...Support for nvim-lspconfig is coming soon.