nvim: after/ftplugin: Add language server for racket & scheme

This commit is contained in:
Sanchayan Maity 2022-12-28 11:38:52 +05:30
parent 47498f93fc
commit d37cbd3cf0
Signed by: sanchayanmaity
GPG Key ID: 6F6A0609C12038F3
2 changed files with 20 additions and 0 deletions

View File

@ -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,
})

View File

@ -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,
})