how to set neovim for sml
- first: you have to have meson plugin
- install millet lsp from it
- enable it thorugh default neovim lsp :
vim.lsp.enable("millet")
- create a folder named “foo”
- in that folder create a file “foo/millet.toml”
- inside it write this config
version = 1
[workspace]
workspace.root = "foo.cm" # or sources.cm
- beside millet.toml file create another folder called boo.cm
- inside it write this config
Group is
test.sml
wawa.sml
nana.sml
{file-name.sml}
- then beside boo.cm and millet.toml creat whatever .sml file you want and make sure that you write it’s name in boo.cm file
- i use inline_diagnostic plugin that helps which is very helpful
- also do this to get commenting correct with ‘gcc' comand :
vim.api.nvim_create_autocmd("FileType", {
pattern = "sml",
callback = function()
vim.bo.commentstring = "(* %s *)"
end,
})