dotfiles/nvim/.config/nvim/after/ftplugin/racket.lua

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
334 B
Lua
Raw Normal View History

local path = vim.fs.find({ '.git' }, { type = "file" })
local root = vim.fs.dirname(path[1])
vim.lsp.start({
name = "racket-langserver",
cmd = { 'racket', '--lib', 'racket-langserver' },
filetypes = { 'scheme', 'racket' },
root_dir = root,
single_file_support = true,
})