Last active
May 22, 2024 10:25
-
-
Save alphashuro/02a810a1af4bd44b00544c75691060ac to your computer and use it in GitHub Desktop.
neovim lua autocmd for roc lsp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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