nvim: after/ftplugin: Add language server for racket & scheme
This commit is contained in:
parent
47498f93fc
commit
d37cbd3cf0
2 changed files with 20 additions and 0 deletions
10
nvim/.config/nvim/after/ftplugin/racket.lua
Normal file
10
nvim/.config/nvim/after/ftplugin/racket.lua
Normal 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,
|
||||||
|
})
|
10
nvim/.config/nvim/after/ftplugin/scheme.lua
Normal file
10
nvim/.config/nvim/after/ftplugin/scheme.lua
Normal 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,
|
||||||
|
})
|
Loading…
Reference in a new issue