diff --git a/nvim/.config/nvim/after/ftplugin/racket.lua b/nvim/.config/nvim/after/ftplugin/racket.lua new file mode 100644 index 0000000..eac0abd --- /dev/null +++ b/nvim/.config/nvim/after/ftplugin/racket.lua @@ -0,0 +1,10 @@ +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, +}) diff --git a/nvim/.config/nvim/after/ftplugin/scheme.lua b/nvim/.config/nvim/after/ftplugin/scheme.lua new file mode 100644 index 0000000..eac0abd --- /dev/null +++ b/nvim/.config/nvim/after/ftplugin/scheme.lua @@ -0,0 +1,10 @@ +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, +})