Skip to content

Instantly share code, notes, and snippets.

@semanticart
Created January 22, 2024 15:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save semanticart/1de8b5ed7752bb0e7d74a7d4a8fe23f4 to your computer and use it in GitHub Desktop.
Save semanticart/1de8b5ed7752bb0e7d74a7d4a8fe23f4 to your computer and use it in GitHub Desktop.
-- /Users/ship/.config/nvim/after/ftplugin/text.lua
vim.lsp.start {
name = "LSP From Scratch",
cmd = {
"npx", "ts-node",
-- Update this with the path to your server.ts
vim.fn.expand("~/src/lsp-from-scratch/server/src/server.ts")
},
capabilities = vim.lsp.protocol.make_client_capabilities()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment