Skip to content

Instantly share code, notes, and snippets.

View kr-alt's full-sized avatar

Ki Ro kr-alt

View GitHub Profile
@kr-alt
kr-alt / tsgo.lua
Created March 12, 2025 16:12
lsp config to test out the new tsgo LSP
local function start_tsgo()
local root_files = { "tsconfig.json", "jsconfig.json", "package.json", ".git" }
local paths = vim.fs.find(root_files, { stop = vim.env.HOME })
local root_dir = vim.fs.dirname(paths[1])
if root_dir == nil then
-- root directory was not found
return
end