nvim dot files

forgot to commit changes

+11 -1
+11 -1
lua/plugins/lsp.lua
··· 61 61 on_attach = on_attach, 62 62 settings = { 63 63 zls = { 64 - zig_exe_path = "/home/shail/GitHub/zig/build/stage3/bin/zig", 64 + zig_exe_path = (function() 65 + local handle = io.popen('which zig 2> /dev/null') 66 + if handle then 67 + local result = handle:read("*a") 68 + handle:close() 69 + -- Remove trailing newline 70 + return result:gsub("[\n\r]", "") 71 + end 72 + -- Fallback to a default path or return nil if which command fails 73 + return nil 74 + end)(), 65 75 } 66 76 } 67 77 })