Skip to content

Instantly share code, notes, and snippets.

@alphashuro
Last active May 22, 2024 10:25
Show Gist options
  • Save alphashuro/02a810a1af4bd44b00544c75691060ac to your computer and use it in GitHub Desktop.
Save alphashuro/02a810a1af4bd44b00544c75691060ac to your computer and use it in GitHub Desktop.
neovim lua autocmd for roc lsp
vim.api.nvim_create_autocmd({ "BufEnter", "BufWinEnter" }, {
pattern = { "*.roc" },
callback = function(ev)
vim.lsp.start({
name = "roc-ls",
cmd = { "roc_language_server" },
root_dir = vim.fn.getcwd(),
})
end,
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment